Do we have a pair?

  • 4
  • Locked
Suppose we have three numbers. Now let's imagine that they are not numbers, but people ... Actually, never mind about that. We don't need to make this weird. Let's just check if there is at least one pair of identical numbers among the three. If there is, we'll display it on the screen. And if the three numbers are the same, we'll display all three.
You can't complete this task, because you're not signed in.
Comments (12)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 13 , Colombia
4 November 2022, 01:57
1.the order is Priority 2.use print dont println
29 June 2021, 22:24
Why the last requirement point in my solution is not correct?
Level 7 , London, United Kingdom
12 June 2021, 11:47
For anyone getting stuck with all three numbers not showing up, the order matters. Can anyone help me understand the difference between else if (....){ System.out.... } vs else { if (...) { System.out... }
Oliver Tookey
Level 10 , Hastings, United Kingdom
19 September 2020, 17:46
I am stumped. This is what I have for comapring all three numbers but it doesn't work. The other conditions work fine. I thought it would be easy. What am I missing? if((nOne==nTwo)&&(nTwo==nThree)) System.out.println(nOne +" " + nTwo +" " + nThree); else if .......
Jurabek Kuralbaev
Level 8 , Tashkent, Uzbekistan
8 June 2020, 11:14
Hi all, Please help me with this task. Am I missing smth. or did I do wrong smth? The program gives me error!
sai priyanka gurajada
Level 11 , Austin, United States
19 November 2019, 16:06
Can we create static method inside a static method ?
Level 41
20 November 2019, 05:49
Maarten Bakker
Level 13 , Sint-Oedenrode, Netherlands
28 September 2019, 20:12
Scanner comes in handy in this one, more convenient than parsing strings from BufferedReader to Ints.
Mike McKenna
Level 25 , Wilmington, United States
25 June 2019, 01:38
i found intelli J very helpful in making code easier to read. also great learning tool .
Level 5 , Samarqand, Uzbekistan
30 March 2019, 15:52
Level 25 , Yahil'nytsya, Ukraine
25 March 2019, 17:53
1. Enter three integers. 2. First, check if the three numbers are equal, display them on the screen. 3. And two checks for equality two numbers, display them on the screen Yes, we do not forget for the command "return", which terminates the conditional statement..
Roman Grygorczuk
Level 19 , Cracow, Poland
31 October 2020, 10:20
order does the job here