Write a program that takes the value of positive integer N and outputs the sum of the first N good numbers.
Answers
Answered by
0
int sum=0;
for(i=0;i<=n;i++)
{
sum = sum + i;
}
Similar questions
Science,
1 month ago
Social Sciences,
1 month ago
Social Sciences,
1 month ago
Psychology,
2 months ago
English,
2 months ago
Math,
9 months ago
Chemistry,
9 months ago
Hindi,
9 months ago