Write a program to find the greatest number among the four numbers
Answers
Answered by
1
Explanation:
l = []
for i in range(4):
x = int(input ("enter a no"))
v = l.append(x)
s = v.sort()
z = len(v)
print(l[z])
Answered by
4
Question:-
Write a program to find the greatest among 4 numbers.
Program:-
Here is your program written Java.
class Max
{
static void main(int a, int b, int c, int d)
{
int max=Math.max(a, Math.max(b, Math.max(c, d)));
System.out.println("Largest number is: "+max);
}
}
Similar questions