Write a program that calculates and prints the sum of all even numbers between 10 and 40. (Please use While Statement) Your program must be properly formatted and commented. You must submit your error-free .c source file. You must create and submit a flowchart that matches your program file. This is what I got so far: include int main() { int x; int i; i=0; x=10; while (x <= 40) { i=i+x; x=x+2; } printf("Sum of all even numbers between 10 and 40 is %dn",i); return 0; }

Write a program that calculates and prints the sum of all even numbers between 10 and 40. (Please use While Statement) Your program must be properly formatted and commented. You must submit your error-free .c source file.

"Order a similar paper and get 100% plagiarism free, professional written paper now!"

Order Now