Hey Guys ! answer this !
Write a script which inputs three numbers from the user and displays these numbers in ascending order.
#Keep smiling :)
Answers
Answered by
1
I only know Java, therefore, here is my answer.
public class example
{
public static void main(int a, int b, int c)
{
int x=Math.max(a,b);
int y=Math.max(x,c);
int z=Math.max(x,y);
System.out.println(+x+ "" +y+ "" +z);
}
}
Similar questions