#include <stdio.h>
int main()
{
int i,sum;
printf("SUM OF THE FIRST 10 NATURAL NUMBERS\n");
for(i=1;i<=10;++i)
{
sum = sum + i;
printf("%d",i);
}printf("The sum is : %d\n",sum);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: