# TODO: add any variables here you if you need
# TODO END
Copyright By PowCoder代写 加微信 powcoder
# read the integer n from the standard input
jal readInt
# now $v0 contains the number of disk n
# Use a recursive algorithm described to print the solution steps. Make sure you follow the output format.
# You can design any functions you need (e.g., the recurisve procedure described in the handout) and put them in the next TODO block.
# There are some helper functions for IO at the end of this file, which might be helpful for you.
# TODO END
li $v0, 10 # exit the program
# TODO: your functions here
# TODO END
########### Helper functions for IO ###########
# read an integer
# int readInt()
# print an integer
# printInt(int n)
# print a character
# printChar(char c)
printChar:
li $v0, 11
# print a null-ended string
# printStr(char *s)
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com