Solve by c program, fast.
Attachments:
Answers
Answered by
0
Answer:
gzt
Explanation:
do indian hacker and then that
Answered by
1
Answer:
#include<stdio.h>
int sum(int n);
void main()
{
printf("Enter a number:");
int num;
scanf("%d" , &num);
printf("1 + 2 ..n = %d" , sum(num));
}
int sum(int n)
{
int sum = 0;
for(int i = n; i >= 0; i--)
{
sum = sum + i;
}
return sum;
}
Explanation:
please mark as brainliest not spam
Similar questions
Math,
1 day ago
Math,
1 day ago
Computer Science,
2 days ago
Hindi,
8 months ago
Accountancy,
8 months ago
India Languages,
8 months ago