Hi,
Does anyone have any idea how to to display the ordinal number? Thank you. A.
package fr.codegym.task.task04.task0424;
/*
Trois nombres
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//écris ton code ici
BufferedReader lecteur = new BufferedReader(new InputStreamReader(System.in));
String A = lecteur.readLine();
int a = Integer.parseInt(A);
String B = lecteur.readLine();
int b = Integer.parseInt(B);
String C = lecteur.readLine();
int c = Integer.parseInt(C);
if (a != b & a != c & b == c)
System.out.println(1);
else
if (b != a & b != c & a == c)
System.out.println(2);
else
if (c != a & c != c & b == a)
System.out.println(3);
else ;
}
}