Page not loading? Try clicking here.
Placeholder

#126
Language restricted

While - Formative Assessment 2 1s - MB

Problems

Integers greater than or equal to 0 are given repeatedly, separated by spaces.

When 0 is entered, the loop stops and the numbers entered before that are processed.

Write a program that prints the number of odd numbers and the number of even numbers.


Example

9 7 10 5 33 65 0
odd : 5

even : 1

Source

자기주도C언어프로그래밍

You must sign in to write code.