MATLAB
Write a program that creates a table showing the conversion from Yen to Pesos. Your program should be able to print a user specified number of lines showing the value of the Yen in one column and correlating value of Pesos in the right column. An example of the conversion output follows, with the values of Pesos X’d out:
% YentoPesos.m
n = input("How many lines of output? "); fprintf("Yen\t\tPesos\n"); for i=1:n fprintf("%f\t%f\n",i,0.18*i); end
Get Answers For Free
Most questions answered within 1 hours.