Hello. I'm currently revising for an exam in structures and algorithims, but recently ran across a problem in my studies. I have already tried lookung through notes, online and Daniel Liangs java book, but can't find exactly what I need. The code is as follows:
public class QuizTest
{
public static void main (String args[]) {
quiz(5);
System.exit(0);
}
public static void quiz(int i)
{
if(i>1)
{
quiz(i/2);
quiz(i/2);
}
System.out.println("*");
}
}