scanf( ) : 주어진 문자열 스트림 소스에서 지정된 형식으로 데이터를 읽어내는 기능을 하는 함수 #include #include //intmax_t int main() { /* multiple inputs with blank separators */ int i; float f; char str[30]; scanf("%d %f %s", &i, &f, str); // scanf에서는 double 구별해줘야함, printf에서는 double과 float 구별 X // Note % is asent in front of str printf("%d %f %s\n", i, f, str); # 빈칸이 있으면 끊어버린다. /* character */ char c; scanf("%c", &c); // try blan..