#include <stdio.h>


int main(void)

{

double a, b, c;


/*1단계*/

printf("a값:");

scanf_s("%lf \n", &a, sizeof(a) );

fflush(stdin);


printf("b값:");

scanf_s("%lf \n", &b, sizeof(b) );

fflush(stdin);

printf("c값:");

scanf_s("%lf \n", &c, sizeof(c) );


printf("a=%f, b=%f, c=%f", a, b, c);


return 0;

}




이 코드를 실행하면 자꾸 아래처럼 나오는데





왜 a입력이 2번 받는건지 어떻게 고치면 되는지좀 도와줘ㅠㅠㅠㅠㅠㅠㅠ