2
How do I get the answer from False be it 0 and True be it 1
equal in C?
That is, I wish the answer of:
u=(1>2)
be it 0 and not False?
Thank you
2
How do I get the answer from False be it 0 and True be it 1
equal in C?
That is, I wish the answer of:
u=(1>2)
be it 0 and not False?
Thank you
4
Just cast the cast to int
u=(1>2)
print(int(u))
Browser other questions tagged python
You are not signed in. Login or sign up in order to post.
What do you mean by answer ? Write on console ? Why the tag
c? He’s trying to write0when it isFalseand1when it isTrue?– Isac