write a program to find greatest of three numbers
Answers
Answered by
1
Answer:
Hello
class greater
{public static void main (String args{[])
{
int a,b,c;
if(a>=b&&a>=c)
System.out.println(a+"is a greatest number");
else if(b>=c&&b>=a);
System.out.println(b+"is a greatest number");
else(c>=a&&c>=b);
System.out.println(c+"is a greatest number");
}
}
Similar questions
English,
5 months ago
Hindi,
5 months ago
India Languages,
5 months ago
Math,
10 months ago
Math,
1 year ago
Political Science,
1 year ago
Physics,
1 year ago