📄 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);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -