program to check even or odd with if else | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

program to check even or odd with if else

13th Oct 2018, 5:40 AM
sam Awasthi
sam Awasthi - avatar
2 Answers
+ 3
Please show your own attempts.
13th Oct 2018, 5:41 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Use the % operator that is find the remainder after division: 5%3=2 9%3=0 6%1=0 Now create your code
13th Oct 2018, 5:47 AM
Daniele Bonomi
Daniele Bonomi - avatar