hey there. i wanted to write a little code to convert cm and kg to in and lb. i wrote this code but it doesnt work. can u help me?
this is my function:
function [height_in,weight_lb]=SI2US(height_cm,weight_kg)height_in=height_cm/2.54;weight_lb=weight_kg/0.4536;end
and this is my code for using that fun:
height_cm=input('enter your height in cm: ');weight_kg=input('enter your weight in kg: ');SI2US(height_cm, weight_kg)
Best Answer