%{
This demo program shows how good a Matlab Program is
Written by: Chester Anthony Yabut
Date: December 9, 2020
Time: 2:30 PM
Program: BS GEO
Course: CS10-8L
Section: B10
School: Mapua University
%}
inches = input("Inches to feet, cm, meter, yard conversion \n");
feet = inches * 0.083333;
yard = inches * 0.0277778;
centimeter = inches * 2.54;
meter = inches * 0.0254;
fprintf('%.2f \n', meter );
fprintf('%.2f \n', centimeter);
fprintf('%.2f \n', yard);
fprintf('%.2f \n', feet);Add a code snippet to your website: www.paste.org