I know you can do it using recursive functions, but I have to make a program for school where I solve a tower of hanoi using only what we currently know. That includes vectors, if statements, for loops and really basic functions that do not include recursive functions. I have currently tried a few things but none go past a few lines of codes and I rly starting to wonder if the teacher is trolling us or not, any help is welcome.
P.S.: This is my 1st time posting here also, any suggestions on how to use the website would really be welcome!!!