저 완전 생초본데 여기서 어떻게 해야하죠? ㅠㅠ
핫다홍
도와주세요..ㅠ
#include stdio.h
#define PI 3.141592
int main(void)
{
double triangle(int bottom, int height);
double circle(int radius);
int rectangle(int length,int width);
printf(triangle area);
printf(\nbottom: );
scanf(%f, &bottom);
printf(\nheight: );
scanf(%f, &height);
triangle = (bottom * height)/2;
printf(\nTriangle : %10.2f, triangle);
printf(circle area);
printf(\nradius: );
scanf(%f, &radius);
circle = PI * radius * radius;
printf(\nCircle : %10.2f, circle);
printf(rectangle area);
printf(\nlength: );
scanf(%f, &length);
printf(\nwidth: );
scanf(%f, &width);
rectangle = length * width;
printf(\nrectangle : %10.2f, rectangle);
return 0;
}
질문 내용 :
이게요 오류가 막 뜨거든요..ㅠㅠ
저 완전 생초보라 정말~ 아무것도 몰라요 ㅠㅠ
제가 생각하기로는 저 맨앞에 저거 double 안에 괄호 넣고 int막이런거 들어가서
약간 뭘 다르게 해야하는거같은데 뭐가문제죠? ㅠㅠㅠ
-
봄시내
처음 main 시작부분에
double triangle(int bottom, int height);
double circle(int radius);
int rectangle(int length,int width);
이부분 아마 사용자가 만든 함수 인거 같은데요....
쓰시려면 함수를 만드셔야되요..