Computer Science, asked by jitendrachoudhary8, 11 months ago

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.

Answers

Answered by sarcasticaf
0

lets assume the numbers that are given by the user are a , b and c.

we will be using Boolean algebra to solve the question .

Pseudo code:

if (a==b or b==c or a==c)

print 0

else

print 1

endif

Similar questions