Program Code:
#include <stdio.h>
#include <conio.h>
void main()
{
int num, i, sum = 0;
for (i = 0; i <= 10; i++)
{
sum = sum + i;
}
printf("\n Sum of the first 10 natural numbers is: %d", sum);
}
To learn more about programming and coding visit our website. PDF study materials also available on our website.
Log on to: www.thecode11.com
