Computer Science, asked by anjalishyam3456, 2 months ago

Write a program that takes the value of positive integer N and outputs the sum of the first N good numbers.

Answers

Answered by brijrajsingh
0

int sum=0;

for(i=0;i<=n;i++)

{

sum = sum + i;

}

Similar questions