Input ten numbers and find total number of even and odd using goto statement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Input ten numbers and find total number of even and odd using goto statement

using goto or for loop

11th Sep 2017, 7:54 AM
rishabh Singh
rishabh Singh - avatar
1 Answer
+ 8
declare odd counter declare even counter declare input variable for loop which runs ten times input to input variable. if input variable is odd increment odd counter else increment even counter
11th Sep 2017, 10:10 AM
Hatsy Rei
Hatsy Rei - avatar