Write a program which inputs 2 integers representing the
sides of a triangle, a
and b. Next, write a function which accepts the 2 sides as
parameters and
returns the hypotenuse of the triangle, c.
Use
c
2
= a
2
+ b
2
To raise a number to an exponent, us
e the built
-
in JavaScript function
Math.pow()
Let’s say you have a variable x and you want to raise it to
the 5
th
power, use
Math.pow in the following manner...
Math.pow(
x,
5
);
This will raise x to the 5
th
power.
To find the square root of a number, use t
he built
-
in JavaScript function
Math.sqrt
()
So to find the square root of x, use Math.pow
()
in the following manner...
Math.sqrt(
x
)
You must create 2 functions to
receive
credit for this assignment. Your
‘
main
’
function which is called from the button. And your
hypotenuse function.
Again, the main function calls upon the hypotenuse f
unction when it needs that
value. Get the user
’
s input, call the function, output your result.
Create your own CSS layout
No Answer is Posted For this Question
Be the First to Post Answer
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
how to stop execution of step 3 in a job mainframe
Is buffer size and file block size is similar? If similar,at which case it will be same size?
what do you man by firmware
Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)
what is difference between input parameter and output parameter.
what is meant by trigger?
1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END
what diffrence between procedure and function?
i need informatica certification dumps(S-powercenter 8 mapping designer)......plz fwd it to my mail id:gaya1989@yahoo.com
How many processes can listen on a single TCP/IP port?
what is the purpose of checked Menu options