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  -------------------------------//

    Related Post:
  1. Program to show the 3D Shearing Transformation along y-axis

  2. Program for Fahrenheit to Celcius using Class

  3. Program to coumputes and displays the factorial of the given number ( using Recursive Algorithm )

  4. Program to read a Non-Linear equation in one variable, then evaluate it using Simple Itrative Method and display its kD accurate root

  5. Program to show the use of Bitwise operator OR ( | )

  6. Program that changes an infix expression to a postfix expression according

  7. Program to implement the Kurskals Algorithm to solve Minimum Cost Spanning Tree Problem (MST) using Graphics

  8. Program of maintaining banking account information system using inheritance

  9. Program to illustrate the implementation of arrays as a Circular Queue ( in graphics )

  10. Program to illustrate the role of constructor in classes

  11. Program of traversing a binary tree in inorder, preorder and postorder fashion

  12. Program of virtual inheritance that takes input of staff members and performs an operation on it

  13. Program to illustrate self-referential structures Linked List

  14. Program of constructor overloading

  15. Program to draw a line using Cartesian Slope-Intercept Equation

  16. Program to convert an Infix Expression into a Postfix Expression using Linked List as a Stack

  17. Program of addition and subtraction of large numbers

  18. Program that reads a number and displays it with its digits in reverse order using do-while loop

  19. Program of swapping numbers using pointers

  20. Program to illustrate over-riding of base class member function in a derived class

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