How do the if else condition works | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do the if else condition works

5th Sep 2016, 12:23 PM
shubham
shubham - avatar
3 Answers
+ 1
if (condition) { stuff to do if condition is true } else { stuff to do if condition is false } Example: bool isEven(int n) { if (n % 2 == 0) { return true; } else { return false; } }
5th Sep 2016, 1:38 PM
Zen
Zen - avatar
- 3
https://www.python.org/downloads/
5th Sep 2016, 12:27 PM
HawkEye
HawkEye - avatar