Using loop statements, branches, input(), and fprintf(), write code that accepts a user inputted number (##), then calculates and displays the first ## terms of the Fibonacci series. DO NOT use MATLAB's fibonacci() function. (4 Points)
Example Input:
Enter number of terms (integer): ##
Expected Outputs:
The Fibonacci series up to ## terms are: 0 1 1 2 3 5 8... (...continues)
OR
## is NOT an integer
Using a while loop, write a script that finds the smallest integer that is divisible by 13 and 16, and whose square root is greater than the number entered by the user. The user will be prompted to enter a number from the Command Window. Do not use break or continue. This can be accomplished in <10 lines of code. The script prints this output message: (8 Points)
The smallest integer divisible by 13 and 16 and square root greater than ## is: ####
For example, test your program with the number 33. The output should be 1248.