program about for loop

program to display 1-10 numbers in asending order.





start...
#include<conio.h>
#include<iostream.h>
void main()
{
int a;
clrscr();
for(a=1;a<=10;a++)
cout<<"\n"<<a;
getch();
}

Comments

Popular posts from this blog

turbo c++ 3.2