标签:
输入一个半径求圆的面积和周长
Scanner sc = new Scanner(System.in);
System.out.print("请输入半径");
int r =sc.nextInt();
final double π = 3.14;
System.out.print("面积为:"+(π*r*r));
System.out.print("周长为:"+(π*r*2));
标签:
原文地址:http://www.cnblogs.com/zs6666/p/5866727.html