aneliabogeva

Invalid number

Nov 10th, 2020
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data