Advertisement
bobo_bobkata

Untitled

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