Prev Demo
Arccosine Value Of A Number Enter By User
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Arccosine value of a number enter by user</h1> <input type="button" onclick="myNumber()" value="Click to Enter Vlue"> <script> function myNumber() { val = prompt("Enter the value in between -1 to +1 to know the exact Arccosine value:", ""); alert('Arccosine value of entered number is::'+Math.acos(val)); } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output