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.

computer science

Description

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; }


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.