kopi_jawa
December 21st, 2002, 04:38 AM
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);
}
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);
}