Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Number100_200_04 {
- public static void main(String[] args) {
- Scanner myScan = new Scanner(System.in);
- int number = Integer.parseInt(myScan.nextLine());
- if ( number < 100 ) {
- System.out.printf("Less than 100");
- }else if (number >= 100 && number <= 200 ) {
- System.out.printf("Between 100 and 200");
- }else if (number > 200 ) {
- System.out.printf("Greater than 200");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment