aneliabogeva

Invalid number

Nov 10th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.util.function.DoubleBinaryOperator;
  3.  
  4. public class BiggerNumber {
  5. public static void main(String[] args) {
  6. Scanner scanner = new Scanner(System.in);
  7. int number = Integer.parseInt(scanner.nextLine());
  8. if(number > 99 && number < 201){}
  9. else if(number == 0){}
  10. else {
  11. System.out.println("invalid");
  12. }
  13.  
  14. }
  15. }
  16.  
Add Comment
Please, Sign In to add comment