CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: rekursif method

  1. #1
    Join Date
    Dec 2002
    Posts
    2

    Smile rekursif method

    Hello all, i'm a beginner in java, i want ask to you all, how to make rekursif programm that implements user input and translate to word, ex:

    input : 1000
    output : one thousand


    please help me.....,
    remember this programm must use rekursif method!

    ex:

    public int test(int test){

    if(test<2){
    return test;
    }
    else{
    return test*test(test-1);
    }

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163
    What part are you having trouble with?
    Please use &#91;CODE]...your code here...&#91;/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured