Search:

Type: Posts; User: drmk4

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,524

    ^^I tried that and i get a 0. Edit - Mr Law...

    ^^I tried that and i get a 0.

    Edit - Mr Law was right. I made sum = 1, deleted the dum=sum assignment and changed the input to dum instead of sum.

    num = 1;
    sum = 1;
    printf("Enter number:...
  2. Replies
    5
    Views
    1,524

    What would you suggest?

    What would you suggest?
  3. Replies
    5
    Views
    1,524

    Help with factorial problem please

    Hi there. I'm trying to write up a simple factorial code yet i'm finding it difficult to get around.

    Here is the code i have so far


    #include <stdio.h>

    int main() {
    int num, sum, dum;
Results 1 to 3 of 3