Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ConditionalStatements;
- import java.util.Scanner;
- public class invalid {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int a=Integer.parseInt(scanner.nextLine());
- if(a>=100 && a<=200 || a==0){
- System.out.println();
- }else{
- System.out.println("invalid");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement