Carpet

Run Settings
LanguageJava
Language Version
Run Command
class Carpet { public static void main(String[] args) { String units="m"; double width= 6.0, length=8.5; double costsqrmeter= 19.95; double totalcost= (length*width)*costsqrmeter; System.out.printf("The cost of a "+length+units+" by "+width+units+" carpet at " +costsqrmeter+ " per squaremeter is $%.2f", totalcost); } }
Editor Settings
Theme
Key bindings
Full width
Lines