#include
int main()
{
int width, height, area;
width = 3.0;
height = 5.0;
area = width * height / 2.0;
printf("%lfcm² \n", area);
return 0;
}
ㅠㅠ
int main()
{
int width, height, area;
width = 3.0;
height = 5.0;
area = width * height / 2.0;
printf("%lfcm² \n", area);
return 0;
}
ㅠㅠ
자료형 공부 다시해라..
왜 안되는지는 컴파일러가 알려준다 영어 공부도 다시해라.
scanf는 말아 드셨나
int라고 해놓고 변수값에 3.0을 주니까 당연히 안되져. 자료형에 대한 공부를 다시 하시는게 좋을거 같습니다.