if n>0:
hanoi(n-1,A,B, C)
print(n,A,"->”,B)
hanoi(n-1,C,A,B)
hanoi (8,A,C,B)
B. def hanoi(n,A,B,C):if n>0:
hanoi(n-1,A,B,C)
print(n, A,"->" ,B)
hanoi(n-1,C,A,B)
hanoi (8, A,B,C)
C. def hanoi (n,C,B,A):if n>0:
hanoi(n-1,A,C,B)
print(n, A,"->”,B)
hanoi(n-1,C,B,A)
hanoi (8, C, B,A)
D. def hanoi(n,A,C,B):if n>0:
hanoi (n-1,A,C,B)
print(n, A,"->,B)
hanoi(n-1,C,B, A)
hanoi(8,C,A,B)