public class Main {
public static void main(String[] args) {
recur(99);
}
public static void recur(int a) {
if (a <= 100) {
System.out.println("a=" + a);
recur(++a);
System.out.println("a=" + a);
}
}
}
Login in to like
Login in to comment