C++ Programming Tutorial



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

  const long factorial(const long);

 int main( )
    clrscr( );

    int n;

    cout<<\"\\n Enter the number = \";

    cout<<\"\\n n! = \"<<n<<\"!\"<<\"  =  \"<<factorial(n)<<endl;

    getch( );
    return 0;

 //--------------------------  factorial( )  -----------------------------//

 const long factorial(const long n)
    long fn=1;


    return fn;

    Related Post:
  1. Program to convert an Infix Expression into a Postfix / Suffix Expression without parenthesize

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

  3. Program to multiply 2 polynomial functions

  4. Program to evaluate series

  5. Program to multiply two matrices

  6. Write a program to read value from console and perform arithmetic operation

  7. Program to draw a spiral rotating clockwise at the center of the screen

  8. Program to swap two variables using header file swap.h

  9. Program to draw a line using Bresenhams Line Algorithm (BLA) for lines with slopes negative and less than 1

  10. Program to show the implementation of Window-to-Viewport Transformaton

  11. Program that reads marks obtained by a student in a test of 100 marks and computes his grade

  12. Program of Education System that maintains Institute Database using multilevel inheritance

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

  14. Program for converting string to class object

  15. Program of LL Parser

  16. Program that performs SCANNING of the following program and finds the entire float,integer variables and keywords present in the program

  17. Program to read a Linear System of Equations,then evaluate it by using Gauss-Elimination Method and show the result

  18. Program to show the projection of 3D objects using Orthographics Parallel Projection w.r.t. xy-plane and along vector v

  19. Program to show the projection of 3D objects using Orthographics Projection Parallel onto xy-plane

  20. Program of Boundary Fill (8 Connected Point).