#include<stdio.h>
#include<conio.h>
int main()
{
int n, sum;
sum=0;
for(n=1; n<=10; n++)
{
sum=sum+n;
}
printf(“Sum of first 10 integers is %d”, sum);
getch();
return 0;
}
#include<stdio.h>
#include<conio.h>
int main()
{
int n, sum;
sum=0;
for(n=1; n<=10; n++)
{
sum=sum+n;
}
printf(“Sum of first 10 integers is %d”, sum);
getch();
return 0;
}