This commit is contained in:
암냥 2026-03-31 09:17:07 +09:00
commit 0ebba00685
2 changed files with 24 additions and 90 deletions

23
02/02_70.c Normal file
View file

@ -0,0 +1,23 @@
#include <stdio.h>
#include <string.h>
int main() {
int age;
double height;
char blood[3], mbti[5];
char name[] = "쿠루링";
printf("나이를 입력하세요: ");
scanf("%d", &age);
printf("키를 입력하세요: ");
scanf("%lf", &height);
printf("혈액형을 입력하세요: ");
scanf("%s", blood);
printf("MBTI를 한 글자씩 띄어서 입력하세요: ");
scanf(" %c %c %c %c", &mbti[0], &mbti[1], &mbti[2], &mbti[3]);
mbti[4] = '\0';
printf("%s(%d, %.1fcm, %s, %s)", name, age, height, blood, mbti);
return 0;
}