blob: cbc1d6b519fa78081254c10462bbf9f619d1660b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class Rekursion {
public static void main(String argv[]) {
get(0);
}
public static void get(int x) {
if (x == 6)
System.out.println("Code:");
if (x < 6)
get(x+=2);
System.out.println(x);
}
}
|