Results 1 to 6 of 6

Thread: Find Factorial of a number

  1. #1
    RanaFaheemAg's Avatar
    RanaFaheemAg is offline Senior Member+
    Last Online
    30th December 2014 @ 11:53 PM
    Join Date
    10 Sep 2012
    Location
    Mianwali
    Age
    31
    Gender
    Male
    Posts
    38
    Threads
    12
    Credits
    0
    Thanked
    0

    Default Find Factorial of a number

    #include<iostream.h> Created by:Rana Faheem A.G 01/11/2013
    #include<conio.h>
    void main(){
    clrscr();
    long user,fac=1;
    cout<<"\n Enter a number to get it's factorial \t";
    cin>> user;
    for(int i=1;i<=user;i++){
    fac=fac*i;
    }
    cout<<"\n Factorial of "<<user<<" is : "<<fac;
    cout<<"\n\n\n Press any key to close . . . ";
    getch();
    }

  2. #2
    Hashmatnaqvi's Avatar
    Hashmatnaqvi is offline Senior Member+
    Last Online
    18th February 2016 @ 01:27 AM
    Join Date
    16 Jan 2012
    Location
    Islamabad
    Age
    30
    Gender
    Male
    Posts
    639
    Threads
    55
    Credits
    0
    Thanked
    105

    Default

    Not working bro
    Shadow xXx

  3. #3
    RanaFaheemAg's Avatar
    RanaFaheemAg is offline Senior Member+
    Last Online
    30th December 2014 @ 11:53 PM
    Join Date
    10 Sep 2012
    Location
    Mianwali
    Age
    31
    Gender
    Male
    Posts
    38
    Threads
    12
    Credits
    0
    Thanked
    0

    Default

    U have to write this code in turbo c++ compiler .
    is k bad apka program chaly ga dear.

  4. #4
    RanaFaheemAg's Avatar
    RanaFaheemAg is offline Senior Member+
    Last Online
    30th December 2014 @ 11:53 PM
    Join Date
    10 Sep 2012
    Location
    Mianwali
    Age
    31
    Gender
    Male
    Posts
    38
    Threads
    12
    Credits
    0
    Thanked
    0

    Default

    Quote Hashmatnaqvi said: View Post
    Not working bro
    You will have to write this code in turbo c++ compiler.
    Us k bad apka ye program chaly ga dear.

  5. #5
    Alibigboss's Avatar
    Alibigboss is offline Senior Member+
    Last Online
    22nd July 2022 @ 06:46 PM
    Join Date
    17 Jan 2014
    Location
    Faisalabad
    Age
    34
    Gender
    Male
    Posts
    406
    Threads
    30
    Credits
    353
    Thanked
    40

    Default

    Very nice yar..

  6. #6
    Abidalicu's Avatar
    Abidalicu is offline Senior Member+
    Last Online
    11th November 2021 @ 05:35 PM
    Join Date
    17 Aug 2014
    Location
    Peshawar
    Gender
    Male
    Posts
    85
    Threads
    12
    Credits
    622
    Thanked
    4

    Default

    bahi dev-c++ compiler use kia karo c++ programming k liay

Similar Threads

  1. Find IP info using Gmail/Yahoo/Hotmail
    By karlu in forum General Discussion
    Replies: 7
    Last Post: 4th July 2014, 05:20 PM
  2. Find the Location of Unknown Number
    By Abdul Mueed Ch in forum English IT Zone
    Replies: 91
    Last Post: 12th February 2013, 01:00 PM
  3. Portible Karne ka tariqa warid mein
    By akram123khan25 in forum General Mobile Discussion
    Replies: 5
    Last Post: 2nd August 2011, 06:55 PM
  4. Mobile Secret codes...........
    By nasir rehman in forum General Mobile Discussion
    Replies: 16
    Last Post: 22nd August 2009, 01:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •