Loading Posts...

program greater than 500 or not

program greater than 500 or not
 import java.util.*;
public class Greater 
{

    public static void main(String[] args) 
{
        
        

  int n;
      Scanner sc=new Scanner(System.in);
       System.out.println("enter n=");
        n=sc.nextInt();
         if(n>500)
          System.out.println("greater than 500");
           else
            System.out.println("not greater than 500");
             } 
             } 
    
    

 

krish..

The author didnt add any Information to his profile yet

Leave a Comment

Loading Posts...
Inline
Inline