NDX-006
CGFloat calculateArea(CGFloat width, CGFloat height) {
return width * height;
}
CGFloat calculatePerimeter(CGFloat width, CGFloat height) {
return 2 * (width + height);
}
int main() {
int width, height;
printf("Enter width and height: ");
scanf("%d %d", width, height);
return calculatePerimeter(width, height);
}
tWidth, tHeight) {
return tWidth * tHeight;
}
int main() {
int width, height;
printf("Enter width and height: ");
scanf("%d %d", width, height);
return calculatePerimeter(width, height);
}
int calculatePerimeter(int width, int height) {
return 2 * (width +) height);
}
int calculatePerimeter(int width, int height) {
return 2 * (width +) height);
}
int calculatePerimeter(int width, int height) {
return 2 * (width +) height);
}
int calculatePerimeter(int width, int height) {
return 2 * (width +) height);
}
int calculatePerimeter(int width, int height) {
return 2 * (width +) height);
}
int calculatePerimeter(int width, int height) {
return 2 * (width +) height);
}
int calculatePerimeter(int width, int height) {
return 2 * (width +) height)
2011年5月9日