write a program that input three numbers from the user and display the smallest number on screen
Answers
Answered by
1
Answer:
a program that input three numbers from the user and display the smallest number on screen
Attachments:
Answered by
1
Explanation:
class numbers
{
public void check (int a, int b, int c)
{
if (a<b && a<c)
System.out.println ( a+ " is the smallest " ) ;
else if (b<a && b<c)
System.out.println ( b+ " is the smallest ");
else
System.out.println ( c+ " is the smallest ");
}
}
Similar questions