|
-
December 21st, 2002, 05:38 AM
#1
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);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|