Question: Write a program to compute the sum of first n even integers of the series: Sum = 2 + 4 + 6 + 8 Your
- Write a program to compute the sum of first n even integers of the series: Sum = 2 + 4 + 6 + 8 Your program must:
a. Prompt user for integer n, b. Read the value of n from user input C. Calculate Sum and; d. Print Sum on screen. Please use the "WriteInt" procedure, not "DumpRegs. Other relevant procedures: "ReadInt" and "Write String." The calculation can be done in many ways, and all submissions that evidence proper programming practice are acceptable. In your homework submission, please embed both the code and one screen shot for n = 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
