Write a programme to display the sum of numbers from 50 to 1
Answers
Answered by
1
Explanation:
/*
* C program to find the sum of first 50 natural numbers
* using for loop
*/
#include <stdio.h>
void main()
{
int num, sum = 0;
for (num = 1; num <= 50; num++)
{
sum = sum + num;
}
printf("Sum = %4d\n", sum);
}
hope it will help you please mark the answer brain list please
Similar questions
Math,
20 days ago
Chemistry,
20 days ago
Environmental Sciences,
1 month ago
Math,
1 month ago
Hindi,
8 months ago