C Program to display the sum of first 10 even numbers.
#include<stdio.h>
#include<conio.h>
int main()
{
int i,s=0;
printf("First 10 natural numbers are:\n");
for(i=2;i<=20;i=i+2)
{
s=s+i;
}
printf("Sum of first 10 even numbers is %d\n",s);
getch();
}