Computer Science, asked by tasmiamustafa4, 3 months ago

write a program that input three numbers from the user and display the smallest number on screen ​

Answers

Answered by gehlotpayal2003
1

Answer:

a program that input three numbers from the user and display the smallest number on screen

Attachments:
Answered by deekshaac
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