1. For Addition
javascript:alert(a+b)Example : To know the Addition of 20 &30 just type javascript:alert(20+30) in your address bar and click ok.
2. For substraction
javascript:alert(a-b)Example : To know the Substraction of 20 & 30 just type javascript:alert(20-30) in your address bar and click ok.
3. For Multiplication
javascript:alert(a*b)Example : To know the Addition of 20 & 30 just type javascript:alert(20*30) in your address bar and click ok.
4. For Division
javascript:alert(a/b)Example : To know the Division of 20 & 30 just type javascript:alert(20/30) in your address bar and click ok.
-->
5. For Sin javascript:alert(math.sin(a))
Example : To know the Sin value of 30 just type javascript:alert(math.sin(30)) in your address bar and click ok.
6. For Cos
javascript:alert(math.cos(a))Example : To know the Cos value of 30 just type javascript:alert(math.cos(30)) in your address bar and click ok.
7. For Tan
javascript:alert(math.tan(a))Example : To know the Tan value of 30 just type javascript:alert(math.tan(30)) in your address bar and click ok.
8. For Power
javascript:alert(pow(a,b))Example : To know the 2 Power 5 just type javascript:alert(pow(2,5)) in your address bar and click ok.
9. For Modulus/Remainder
javascript:alert(a%b)Example : To know the modulus of 10 by 3 just type javascript:alert(10%3) in your address bar and click ok.
10. Square Root
javascript:alert(sqrt(a))Example : To know the square root of 64 just type javascript:alert(sqrt(64)) in your address bar and click ok.
No comments:
Post a Comment