Question: 3 . 1 4 LAB: Count odd numbers Write a program that takes in four positive integers and outputs the number of odd numbers. (

3.14 LAB: Count odd numbers
Write a program that takes in four positive integers and outputs the number of odd numbers. (Hint: use the modulo operator to determine if a number is odd)
Ex: If the input is:
1
2
3
4
the output is:
2
Ex: If the input is:
19
19
19
19
the output is:
4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!