This preview shows page 1. Sign up to view the full content.
Unformatted text preview: fprintf('Your cost will be $%1.2f', cost) case 'Liters' Gas=2.00; l = input('Enter the amount of gas? ') cost = l*(Gas*3.7854); fprintf('Your cost will be $%1.2f', cost) otherwise('Your gas price cannot be calculated.') end...
View Full Document
This note was uploaded on 06/17/2011 for the course COMP 1200 taught by Professor Staff during the Spring '11 term at Kennesaw.
- Spring '11