Question: 1. Write a C program using codeblocks that reads a set of integers and then finds and prints the sum of the even and odd
1. Write a C program using codeblocks that reads a set of integers and then finds and prints the sum
of the even and odd integers.
Design:
****************************************
EVEN AND ODD NUMBERS SUMMATION
****************************************
Enter a number greater than 0 > 5
Enter f if you've finished adding the numbers or any other letter to add a number one> c
Enter a number greater than 0 > 7
Enter f if you've finished adding the numbers or any other letter to add a number one> c
Enter a number greater than 0 > 2
Enter f if you've finished adding the numbers or any other letter to add a number one> c
Enter a number greater than 0 > 9
Enter f if you've finished adding the numbers or any other letter to add a number one> c
Enter a number greater than 0 > 4
Enter f if you've finished adding the numbers or any other letter to add a number one> c
Enter a number greater than 0 > -5
Please number must be greater than 0
Enter a number greater than 0 > 5
Enter f if you've finished adding the numbers or any other letter to add a number one> f
Even summation: 6
Odd summation: 26
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
