Monday, 19 February 2018

Que 3 on page 92 (Travel according to money and distance)

<!DOCTYPE html>
<html>
<body>
<script>
 var money = prompt("Enter the money your pocket");

    money=parseInt(money);
if (money>50) document.write("Travel by Auto to reach the school");
else if ((money<=50)&&(money>20)) document.write("Travel by Sharing an Auto to reach the school");
     else if ((money<=20)&& (money>5)) document.write("Travel by public bus reach the school");
      else document.write("Travel by foot to reach the school");

</script>
</body>
</html>

Que 3 on page 92 (Travel according to money and distance)

<!DOCTYPE html> <html> <body> <script>  var money = prompt("Enter the money your pocket");     mone...