presentation error

zeno0268 Reply 6 years 5 weeks ago
#include <stdio.h> int main() { float celsius, fahr; int upper, lower, step; upper = 100; lower = -10; step = 10; celsius = lower; while (celsius <= 100) { fahr = celsius*(9.0/5.0)+32.0; printf("%3.0f %6.1f\n", celsius, fahr); celsius = celsius + step; } return 0; } 비쥬얼 스튜디오에서는 정상실행 되어서 sample output 과 동일하게 작성이 되는데 왜 자꾸 presentation error가 나는지 모르겠습니다. 혹시 어디서 잘못된 것인지 가르쳐주실 수 있으신가요?
onacloud Reply 6 years 4 weeks ago
Presentation error는 내용은 맞는데, 공백에서만 차이가 있을때 발생합니다. printf 줄을 보면 f와 %사이에 공백이 2개가 있어요. 문제를 보고 이것을 조정해보세요.