Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import javax.sound.midi.Soundbank;
  2. import java.util.Scanner;
  3.  
  4. public class NumberN {
  5. public static void main(String[] args) {
  6.  
  7. Scanner scanner = new Scanner(System.in);
  8.  
  9. System.out.println("please enter N");
  10.  
  11. int n = scanner.nextInt();
  12.  
  13. if (n>=100 && n<=200) {
  14. System.out.println("true");
  15. }
  16. else
  17. {
  18. System.out.println("false");}
  19.  
  20.  
  21.  
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement