import java.util.*;
public class maxMin
{
public static void main(String args[])
{
Scanner p= new Scanner(System.in);
System.out.println("Enter the value of a");
int a=p.nextInt();
System.out.println("Enter the value of b");
int b=p.nextInt();
if(a>b)
System.out.println("a is greater then b");
else if(a<b)
System.out.println("b is greater then a");
else
System.out.println("Both are equal ");
}}
0 comments:
Post a Comment