Pages
HOME
DEVELOPERS
PROJECTS
PROGRAMS
TUTORIAL
DATA STRUCTURE & ALGORITHM
HELP
Program to add 10 integer numbers from 1 to 10 using for loop
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int sum=0,n=10;
for(int x=1;x<=n;x++)
{
sum=sum+x;
}
cout<<"TOTAL is "<<sum;
getch();
}
Newer Post
Older Post
Home