
# Starter code for computing Nth Fibonacci term.
       

        .data
str_0:  .asciiz "Welcome to Midn. Smith's Fibonacci term calculator\n"
str_1:  .asciiz "Enter which Fibonacci term to calculate=> "
 
        .text
        .globl main
main:   
        la      $a0, str_0              # system call to print welcome 
        li      $v0, 4                 
        syscall         
					# prompt user for number
        la      $a0, str_1              # system call to print str_1  
        li      $v0, 4                 
        syscall         
					# user inputs number for term to calculate
        li      $v0, 5                  # system call to read an integer
        syscall

# You should start filling in details here:
# 1. call the fibonacci function
# 2. put the returned value into register for later use
# 3. add the statements to print out the result


        # terminate the program
        li $v0, 10
        syscall


fibonacci:  

# Your code for fibonacci goes here





	
