//How to compare two numbers in java
import java.util.*;
public class M
{
public static void main(String args[])
{
int a=10,b=20;
if(a<b)
{
System.out.println("a is less than b");
}
}
}
OUTPUT:
a is less than b
import java.util.*;
public class M
{
public static void main(String args[])
{
int a=10,b=20;
if(a<b)
{
System.out.println("a is less than b");
}
}
}
OUTPUT:
a is less than b
No comments:
Post a Comment