Home TechnologyProgrammingC++ Subscribe to RSS

How To Write Factorial Problem Using C++?

Answer Question

1 Answer - Sort by: Date | Rating

    #include<iostream.h>
    #include<conio.h>
    void main()
    {
    int
    clrscr();
    cout<<"Enter any one Number:";
    cin>>n;
    for(i=0;i<n;i++)
    {
    fact=fact*i;
    }
    cout<<"Factorial="<<fact;
    getch();
    }
    0 0

    Mahindrasm 

    answered 3 weeks ago

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International