Question: ( 3 0 % ) Write a C# program to display the sum of 1 + 2 + 3 + dots + 1 0 like

(30%) Write a C# program to display the sum of 1+2+3+dots+10 like below:
Sum of 1+2+3+dots+10 is 1 in iteration 1
Sum of 1+2+3+dots+10 is 3 in iteration 2
Sum of 1+2+3+dots+10 is 6 in iteration 3
Sum of 1+2+3+dots+10 is 45 in iteration 9&
Sum of 1+2+3+dots+10 is 55 in iteration 10
(Since when we add 1+2+3+4+dots etc. we get 1,1+2=3,1+2+3=6 etc.)
Note. This is a simple application of for loop but you have a Console. WriteLine in each iteration with the value
sum changed in every iteration).
Capture the output in the Word file and turn in the source code.
( 3 0 % ) Write a C# program to display the sum

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 Programming Questions!