Question: This code needs to output the value of 1 = 25. Could you help me with this code where I can output the value of
This code needs to output the value of 1 = 25. Could you help me with this code where I can output the value of 1 as well? I tried num=1: num and it did not work. with this same code which I have provided, could you help me to output the value 1 which is 25?
CODE:
clear format bank num=input('Enter Number Of Week: '); w=25; for num=2:num fprintf("%.2f %d"); w=w-7*num/(num-1)+7; display([num w]) end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
