Advertisement
NikolayNenchev

Untitled

Sep 21st, 2020
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class numberBetween100And200 {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6. int num = Integer.parseInt(scanner.nextLine());
  7. if (num <100){
  8. System.out.println("Less than 100");
  9. }else if(num >=100 && num <=200){
  10. System.out.println("Between 100 and 200");
  11. }else{
  12. System.out.println("Greater than 200");
  13. }
  14. }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement