Question: Write a C program that reads integer numbers from the keyboard until the # is pressed. Compute and display the sum of even numbers and
Write a C program that reads integer numbers from the keyboard until the # is pressed. Compute and display the sum of even numbers and separately, compute and display the sum of even numbers.
example:
what is wrong with my work?
.
Sum of even numbers: 20 Sum of odd numbers: 26 int main() { int a[20]; int i,even=0; int odd=0; for(i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
