C++ Programming Blog

 
 
 

Image

 /**************************************************************************
  **************************************************************************

  A C++ Program that prints the first 10 integers(using for loop).

  **************************************************************************
  *************************************************************************/


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



 //-----------------------------  Main( )  -------------------------------//



 main()
    {
       clrscr();

       cout<<\"\\n The first 10 integers are as follows :\"<<endl;

       for(int count=1;count<=10;count++)
      cout<<\" \"<<count;

       getch();
       return 0;
    }



 //-----------------------------  THE END  -------------------------------//

 
 
Didn't find what you were looking for? Find more on Program that prints the first 10 integers(using for loop)