2023-10-30 15:26来源:m.sf1369.com作者:宇宇
#include
double zc(double x, double y){
return 2*(x+y);
}
double mj(double x,double y){
return x*y;
}
int main(){
double x,y;
scanf(%lf%lf,&x,&y);
printf(%lf %lf,zc(x,y),mj(x,y));
getchar();
getchar();
return 0;
}
# include int main() { int i,j; for(i=0;i<6;i++){ for(j=0;j<6;j++) printf(%d ,(i+1)*(j+1)); printf(\n); } return 0; }
英语不好,就拿拼音吧。
public class Juxing {
private double a;
private double b;
// 计算周长
public double zhouchang() {
return 2 * (a + b);
}
// 计算面积
public double mianji() {
return a * b;
}
public double getA() {
return a;
}
public void setA(double a) {
this.a = a;
}
public double getB() {
return b;
}
public void setB(double b) {
this.b = b;
}
}
for(d=1;d
我不会,但我是用VC++6.0的,你可以去下载一个库(画图的),然后安装,添加头文件#include,就可以用头文件的函数rectangle(int sx,int sy,int ex,int ey),画图了,库的名字是EasyX,