Search:

Type: Posts; User: moodycrab3

Search: Search took 0.09 seconds.

  1. Replies
    8
    Views
    1,739

    [SOLVED] Re: Can't get output HELP

    I understand what you mean.... Thanks so very much...!!!
  2. Replies
    8
    Views
    1,739

    [SOLVED] Re: Can't get output HELP

    You mean for every If statement there has to be an else statement.... or else the logic doesn't work...
  3. Replies
    8
    Views
    1,739

    [SOLVED] Re: Can't get output HELP

    Even if I add
    If(n<0)
    return 0;

    meaning even when all the possible conditions are addressed...... the output is still "return statement missing"
    I think the problem lies with the recursive...
  4. Replies
    8
    Views
    1,739

    [SOLVED] Can't get output HELP

    class keg
    {
    public static int fact(int n)
    {
    int factorial;
    if(n>0)
    {
    factorial=n*fact(n-1);
    return factorial;
    }
Results 1 to 4 of 5