Tag Archives: C004

C004 An interactive C program that reads in integers until a zero is entered and display total of odd and even numbers and average of odd and even numbers

Let’s identify variables needed for this program. First variable will be the one which will save the value entered by the user and it will be NUM. Other variables will be according to the output requirements that are Total of even numbers (TOTAL_EVEN), Total of odd numbers (TOTAL_ODD), Average of even numbers (AVG_EVEN), Average of… Read More »