#include<stdio.h>
#include<conio.h>
void main( )
{
int no ,sum=0;
for(no=1;no<=10;no++)
{
sum = sum+no;
}
printf("Total = %d",sum);
getch();
}
#include<conio.h>
void main( )
{
int no ,sum=0;
for(no=1;no<=10;no++)
{
sum = sum+no;
}
printf("Total = %d",sum);
getch();
}
To get many examples of "c programming " visit http://www.cprogramming-bd.com/c_page1.aspx#c%20programming
ReplyDelete:O
Delete