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:Write a C program that reads integer numbers from the keyboard until

what is wrong with my work?

.the # is pressed. Compute and display the sum of even numbers

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!