Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class InvalidNumber {
  4. public static void main(String[] args) {
  5. Scanner scan = new Scanner(System.in);
  6. double a = Double.parseDouble(scan.nextLine());
  7.  
  8. if ( !(a >= 100 && a <= 200 || a ==0)){
  9. System.out.println("invalid");
  10. }
  11.  
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement