It is beginning to get annoying how often this happens. If they have further requirements, why not just list them? That is the point of test-driven development.
Any thoughts as to what the other unlisted requirements are?
Thanks!
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int first = 0;
int second = 0;
int third = 0;
if (a > b && a > c ) {
first = a;
} if (a > b && a < c) {
second = a;
third = b;
} if (b > a && b > c) {
first = b;
} if (b > a && b < c) {
second = b;
third = a;
} if (c > a && c > b) {
first = c;
} if (c > a && c < b) {
second = c;
third = a;
}
System.out.println(first + " " + second + " " + third);
}
}