Count odd numbers

111 views 11:06 am 0 Comments March 12, 2023


3.14LAB: 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

454198.3178684.qx3zqy7

LABACTIVITY

3.14.1:LAB: Count odd numbers

0/10

main.py

Load default template…

1

# Type your code here.