- 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
2 Answers
+ 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