Write a program to calculate and display the result of the following sum, when number n is input: 1+2+3……….n.


 

Comments