Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package test;
- import java.util.Scanner;
- public class Numbers100_200 {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- Double a = Double.parseDouble(scan.nextLine());
- if (a<100){
- System.out.println("Less than 100");}
- else if (a<200){
- System.out.println("Between 100 and 200");}
- else if (a>200){
- System.out.println("Greater than 200");}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement