Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. package test;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Numbers100_200 {
  6. public static void main(String[] args) {
  7. Scanner scan = new Scanner(System.in);
  8. Double a = Double.parseDouble(scan.nextLine());
  9. if (a<100){
  10. System.out.println("Less than 100");}
  11. else if (a<200){
  12. System.out.println("Between 100 and 200");}
  13. else if (a>200){
  14. System.out.println("Greater than 200");}
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement