C Program to Find Sum of 10 Numbers.
#include "stdio.h"
int main()
{
int sum=1,b=2;
while(b<=10)
{
sum=sum+b;
b=b+1;
}
printf("sum=%d\n",sum);
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment