Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /*
- * Created by todor on 18.01.2017 г..
- */
- public class u10_NumberRange {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- int num = Integer.parseInt(scan.nextLine());
- if (num < 100){
- System.out.println("Less than 100");
- }
- else if (num > 200){
- System.out.println("Greater than 200");
- }
- else {
- System.out.println("Between 100 and 200");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement