+ 1
How to pass 2 integers into switch statement?
using some kind of concatenation without using string concat...n, is it possible to create value to be able to be passed into the switch?
4 odpowiedzi
+ 2
Exactly what do you doing?
+ 1
Yeah! I have 2 values x and y
if (x, y)= (0,0) print 0
if (x, y)= (0,1) print 1
if (x, y)= (1,0) print 1
if (x, y)= (1,1) print 0
xnor logic
Any suggestions how to get it done over case??
0
if(x==y) {print 0 }
else {print 1}
this will be correct.