Thursday, November 10, 2011

Looping ( FOR )

..create an output like this..

This is a program listing :



#include<stdio.h>
#include<iostream.h>
#include<conio.h>

main()

{

int a;
clrscr();
for(a=1;a<=10;a++)
cout<<a<<endl;

getch();
}

Enjoy it..if any one does not understand please ask by leaving a comment ..
and do not forget to follow our blog ... ^ _ ^

No comments:

Post a Comment