This is a very beginner program in MIPS programming in which I am trying to take input from user and …