fork download
  1.  
  2.  
  3. import java.util.Scanner;
  4.  
  5.  
  6. public class Main
  7.  
  8. {
  9. public static void main (String[] args){
  10. Scanner input =new Scanner(System.in);
  11. int number;
  12. System.out.println("Enter your number");
  13. number =input.nextInt();
  14. if (number>=0 && number<=100){
  15. System.out.println("the number is between 0 and 100 ");
  16. }else{
  17. System.out.println("the number is out of the range ");
  18.  
  19. }
  20. }
  21. }
Success #stdin #stdout 0.11s 56560KB
stdin
55
98
190
stdout
Enter your number
the number is between 0 and 100