Problem1570--C Programming Practicals 4 Switch for Solutions

1570: C Programming Practicals 4 Switch for Solutions

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 995  Solved: 327
[Submit] [Status] [Web Board] [Creator:]

Description

Write a C code to calculate sum of the first N natural numbers, N will be input by user.

Input

Enter the nutaral number, N :20

Output

Sum of first 20 natural number = 190

Sample Input Copy

20

Sample Output Copy

Sum of first 20 natural number = 190

Source/Category

116