If there are three diff or same inputs in a c program... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If there are three diff or same inputs in a c program...

The output should be 1 if all three inputs are different and output should be 0 if any one input is repeated...

26th Jul 2017, 5:28 PM
Rahul Nani
Rahul Nani - avatar
1 Answer
0
if(a!=b && b!=c && a!=c) { printf("1"); } else { printf("0"): }
28th Jul 2017, 5:00 PM
ABDUL MANAN
ABDUL MANAN - avatar