Sunday, 19 January 2014

FIND OUT THE BIG VALUE USING JAVA PROGRAM

import java.io.*;
import java.lang.*;
class Bigvalue
{
public static void main(String[]args)
{
int a=5;
int b=2;
int c=7;

if((a>b)&&(a>c))
System.out.println("A is big");
else
if((b>a)&&(b>c))
System.out.println("b is big");
else
if((c>b)&&(c>a))
System.out.println("C is big");
}
}

No comments:

Post a Comment