Guest User

Untitled

a guest
Feb 25th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class CheckNumber {
  4. public static void main(String[] args) {
  5. Scanner scan = new Scanner(System.in);
  6. System.out.print("Enter n: ");
  7. int n = scan.nextInt();
  8.  
  9. if (n >= 100 && n <= 200) {
  10. System.out.println("The number is within [100; 200]");
  11. } else {
  12. System.out.println("The number is beyond [100; 200]");
  13. }
  14.  
  15. }
  16. }
Add Comment
Please, Sign In to add comment