In this program we are going to check
whether a number is greater is greater or not using if.
//check greater number
class If1{
public static void main(String args[]){
int a=20;
if(a>10){
System.out.println("a is greater than 10");
}
}
}
//check greater number
class If1{
public static void main(String args[]){
int a=20;
if(a>10){
System.out.println("a is greater than 10");
}
}
}
No comments:
Post a Comment