Wednesday, 17 October 2012

revised task No.2

here is task number 2 redone with some changes :D and the comments are in the actual code.


var l = prompt("HOW TALL IS THE WINDOW??(IN METERS)");
var w = prompt("HOW WIDE IS THE WINDOW??(IN METERS)");
var p = prompt("HOW EXPENSIVE IS GLASS PER SQUARE METER??");
alert("length = " + l + " Width = " + w + " Price per meter = " + p + " total price = " + l*w*p)
//varibles work as a number that can be added to or changed to differnt things.

No comments:

Post a Comment