Advertisement Remove all ads

Complete following program to display multiplication of 6.40 and 300. - Information Technology

Advertisement Remove all ads
Advertisement Remove all ads
Answer in Brief

Complete following program to display multiplication of 6.40 and 300.

‹!DOCTYPE html›
‹html›
‹head›
‹title› Series ‹/title›
‹/head›
‹body›
__________________________________
var x = ______;
var y = ______;
document.write(x ______ y);
__________________________________
‹/body›
‹/html›
Advertisement Remove all ads

Solution

‹!DOCTYPE html›
‹html›
‹head›
‹title› Series ‹/title›
‹/head›
‹body›
‹script type="text/javascript"›
var x = 6.4;
var y = 300;
document.write(x * y);
</script>
‹/body›
‹/html›
Concept: JavaScript Arithmetic Operators
  Is there an error in this question or solution?
Advertisement Remove all ads

APPEARS IN

Balbharati Information Technology (IT) 11th Standard HSC Maharashtra State Board
Chapter 3 Impressive Web Designing
Exercise | Q 2.5 | Page 57
Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×