public class ChangFangXing {
public int zhouChang(int a,int b) {
int c= (a+b)*2;
return c;
}
public int mianJi(int a,int b) {
int c= a*b;
return c;
}
}
public class Yuan {
public double zhouChang(int a) {
double b = 2*3.14*a;
return b;
}
public double mianJi(int a) {
double b = 3.14*a*a;
return b;
}
}
public class Main {
public static void main(String[] args) {
Scanner jp = new Scanner(System.in);
while (true) {
System.out.println("请输入你要求的图像(1:长方形 2:圆):");
int p1 = jp.nextInt();
if (p1 == 1) {
while (true) {
System.out.println("求周长还是面积(1:周长 2:面积):");