Search:

Type: Posts; User: nevx

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    246

    This Seems to Work int fact(int num) { ...

    This Seems to Work



    int fact(int num)
    {
    int i=1;
    int fact =1;
    if(num == 0) {
    num =1;
  2. Replies
    3
    Views
    246

    C Newbie Problem with Factorial Example

    Can anyone please help me with my logic here , i can't seem to figure it out, however when i try to find Factorial of num 2 i get the factorial as 2 which is right , but other numbers give me huge...
Results 1 to 2 of 2