+ 1

Need help in C language

You will be given 3 integers as input. The inputs may or may not be  different from each other.  You have to output 1 if all three inputs  are different from each other,  and 0 if any input is repeated more  than once. Input ----- Three integers on three lines. Output ------ 1 if the three inputs are different from each other , 0 if some input is repeated more than once

11th Sep 2018, 9:17 AM
Prabhat kumar chanchal
Prabhat kumar chanchal - avatar
1 Antwort
+ 3
If first number is different from the second number,the second number is different from the third number and the third number is different from the first number, print 1 else print 0 Good luck!
11th Sep 2018, 10:40 AM
LetterC67
LetterC67 - avatar