Computer Science, asked by avanger10, 11 months ago

input 4 numbers in java and find the greater number without using If Else

Answers

Answered by abhishek1764
2
import java.util.Scanner;
class number
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int a,b,c,d;
System.out.println("enter the value of number");
a=in.nextInt();
b=in.nextInt();
c=in.nextInt();
d=in.nextInt();
System.out.println("the first number is="+a);
System.out.println("the second number is="+b);
System.out.println("the third number is="+c);
System.out.println("the fourth number is="+d);
}
}

abhishek1764: please bro mark me as a brainliest
abhishek1764: please
abhishek1764: i will be greatful to u
avanger10: thnq..so much..BUD
abhishek1764: please mark me as a brainliest
abhishek1764: plzzz
abhishek1764: hey please mark me as a brainliest
Similar questions