?? math-pi.js
字號:
// request the user enter a radius size
var rad = prompt("Please enter radius size...","");
// calculate the circle area using (pi*r squared)
var area = Math.PI * (rad * rad);
// calculate the circumference using (2*pi*r)
var circ = 2 * (Math.PI * rad);
// display the results
alert("Area: " + area + "\nCircumference: " + circ);
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -