作业1
public
class
Demo1 {
public
static
void
main(String[] args)
throws
Exception {
System.out.println(
" J A V V A"
);
System.out.println(
" J A A V V A A"
);
System.out.println(
"J J AAAAA V V AAAAA"
);
System.out.println(
" J J A A V A A"
);
}
}
作业2
public class Exercise08 { public static void main(String[] args){
double c=2 * 5.5 * Math.PI;
double s=5.5 * 5.5 * Math.PI;
System.out.println("周长为"+c);
System.out.println("面积为"+s);
}
作业3
public class world{
public static void main(String[] args){
double p=3.14,i=5.50;
System.out.println(" 圆的面积:"+ p*i*i+ "cm2");
System.out.println(" 圆的周长:"+ 2*i*p +"cm");
}
}