float unconvertedVar = 0; float convertedVar = 0; string typeOfConversion;
(type in) unconvertedVar; (type in) typeOfConversion;
if (typeOfConversion == "inches to feet") //this is just an example { convertedVar = unconvertedVar / 12; }
(print out) convertedVar; //output variable