class RekursjonEks { public static void tellIterativt(int t) { while (t >= 0) { System.out.println(t); t--; } } public static void tellRekursivt(int t) { if (t < 0) { return; } System.out.println(t); tellRekursivt(t - 1); } public static void tellPreOrder(int t) { if (t < 0) { return; } System.out.println(t); tellPreOrder(t - 1); } public static void tellPostOrder(int t) { if (t < 0) { return; } tellPostOrder(t - 1); System.out.println(t); } public static void main(String[] args) { tellPostOrder(5); } }