Create am file that uses two variables named count and facto
Create a,m file that uses two variables, named \"count\" and \"factor\", and uses a loop to write out the product of (index*factor) while iterating index from 1 to \"count\", using a statement that makes sense. So, if count is 3 and factor is 2.5, when your.m file runs it prints out something like:
Solution
count =input(\'enter the count \');
factor=input(\'enter factor value \');
for k=1:count
n=k.*factor;
disp([\'the product is \' num2str(n)]);
end
%result
>> m3
enter the count 3
enter factor value 2.5
the product is 2.5
the product is 5
the product is 7.5
>>
