just code it on the fly not test for syntax: get the number n from input n for (int i=100; i-- ; i>100-n) { Sytem.out.println(i + " monkies jumping on the ball"); Sytem.out.println(i + "monkies jumping"); Sytem.out.println(If one of those monkies fall"); Sytem.out.println("There are " + i-1 + "monkies jumping on a ball"); }
i got it 2 work! Thank you! You are the best!!!!!!!!!!!!!! you dunno how long i been trying to get this 2 work!! thanks again so much!