강의

멘토링

커뮤니티

Inflearn Community Q&A

hopejong2660's profile image
hopejong2660

asked

Hong Jung-mo's Follow Along and Learn C Programming

3.4 Creating a simple input/output program

교수님! illegal digit '8' for base '8'라고 에러가 발생합니다.

Written on

·

315

0

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int main()

{

int won = 0;

int dollar = 0;

printf("Input won\n");

scanf("%d", &won);

dollar = won * 0,00089;

printf("Dollar = %d\n", dollar);

return 0;

}

교수님 안녕하세요. 위와 같이 하고 디버깅을 하면  error C2041: illegal digit '8' for base '8' 이라고 에러가 발생합니다. 물론 콘솔창도 뜨지 않습니다. 도움을 부탁드립니다 감사합니다.

c

Answer 2

0

답변은 교수님 대신 제가 드립니다! 앞으로 편하게 질문해주세요~ :)

0

JC Lee님의 프로필 이미지
JC Lee
Questioner

교수님 발견 했습니다! dollar = won * 0,00089; 에서 (.)을 해야 하는데 (,)을 했습니다. 죄송합니다...

hopejong2660's profile image
hopejong2660

asked

Ask a question