Question: must use while loop NOT for loop Times table A times table gives the product between two integers. Ex: 5 times 5 is 25, 5

Times table A times table gives the product between two integers. Ex: 5 times 5 is 25, 5 times 6 is 30, 12 times 12, etc. Write a function called times Table that outputs a times table up to the size requested, given by a positive integer size Of Table. The top row and left column have integers from 1 to the desired size. If size Of Table is: negative, then the absolute value of size Of Table should be used to calculate the table. is not an integer, the table should be calculated to the nearest integer greater than or equal to size of Table Restrictions The times Table function should only use while loops Ex 5 >> output Matrix - timesTable(5) output Matrix = 2 3 4 2 4 6 8 10 3 6 9 12 15 4 8 12 16 20 5 10 15 20 25 Function Save C Reset DI MATLAB Documentation 1 function outnut Mat t amastable sizeable Search u Uu Nese DUDULUNCH 1 function output Matrix - timesTable( sizeofTable) % Insert code to determine the size of the times table % Insert code to initialize the table by filling all entries with zeros % Insert code to fill the first column and first row with consecutive integers % starting with 1 % Use a loop structure to fill the remaining entries in the times table end Code to call your function e Reset 1 sizeofTable = 5 % initialize the size (change this value) 2 outputMatrix - timesTable(sizeofTable)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
