answersLogoWhite

0


Best Answer

Scanner misterscan = new Scanner(System.in);

int num1, num2, num3;

int [] temp = new int[3];

for (int k = 0; k < 3; k ++)

{

System.out.print("Enter num: ");

temp[k] = misterscan.nextInt();

}

Arrays.sort(temp); //Uses merge sort, and since I am lazy I cheated.

num1 = temp[0];

num2 = temp[1];

num3 = temp[2];

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program that sorts three integers The integers are entered from the input dialogs and stored in variables num1num2 and num3 respectively The program sorts the numbers so that num1 num2num3?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions