Why doesn't double C = 2*Math.PI.radius; work?
package zh.codegym.task.task01.task0129;
/*
计算圆的周长
*/
public class Solution {
public static void main(String[] args) {
printCircleCircumference(5);
}
public static void printCircleCircumference(int radius) {
//在此编写你的代码
double C = 2*Math.PI*radius;
}
}