deyanivanov966

10. Invalid Number

Aug 27th, 2020 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class InvalidNumber {
  4.     public static void main(String[] args) {
  5.         Scanner scanner=new Scanner(System.in);
  6.  
  7.         int A = Integer.parseInt(scanner.nextLine());
  8.  
  9.         if ( A==0){
  10.             System.out.println();
  11.         }else if(A>=100 && A<=200 ){
  12.             System.out.println();
  13.         }else{
  14.             System.out.println("invalid");
  15.         }
  16.     }
  17. }
  18.  
Add Comment
Please, Sign In to add comment