package pl.codegym.task.task04.task0424;
/*
Three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
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());
if (a!=b && a!=c && b==c){
System.out.println(a);
}
else if(b!=a && b!=c && a==c){
System.out.println(b);
}
else if(c!=a && c!=b && a==b){
System.out.println(c);
}
else if(c!=a && a!=b && b!=c)
{
}
else if(a==b && a==c)
{
}
}
}
why i can't pass requirements?
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Anthony Chalk
10 November 2019, 14:29solution
You should be displaying the position of the number not the number itself e.g. if the first condition is fulfilled you should display "1" not "a"
+2
m
10 November 2019, 14:42
Thank you!
0