Or is printing 1 when a function evaluates to True and printing -1 when a function is false acceptable?
Asked
Active
Viewed 1,880 times
0
-
2Usuall convention is : zero as false, any Nonzero as true. – 0___________ Aug 13 '18 at 09:14
-
ok thanks bud. So is printing zero to signifiy false and printing everything that is non-zero as true sufficient? – JohnLovesMaths Aug 13 '18 at 09:19
-
I do not know what you mean "print". If you print something in the screen just print "The condition is true". Functions return "return values" – 0___________ Aug 13 '18 at 09:27