Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 4.2 Write a javascript program that ask user to enter three numbers, your program will then output the number, the square of the number
Exercise 4.2 Write a javascript program that ask user to enter three numbers, your program will then output the number, the square of the number and the cube of the number on a table like the following. E.g. if the user entered 3,4 and 5 then a table similar to the following will display on your browser. While a negative number is acceptable and its square and cube can be computed, your program will give an alert to the user saying he/she entered a negative number. Number Square Cube 3 9 27 4 16 64 5 25 125
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started