inflearn logo
Course

Course

Instructor

7777777cute's Posts

7777777cute 7777777cute

@7777777cute4118

Reviews Written
-
Average Rating
-

Posts 2

Q&A

경찰관 범죄자 앱

#include int main(void) { int age = 12; printf("%d\n", age); return (); } char name[256]; printf("이름이 뭐에요?") scanf_s("%s",name sizeof(name)); int age; printf("몇살이에요?"); scanf_s("%d", &age); float weight; printf("몸무게는 몇 kg 이에요?"); scanf_s("%f", &weight);2 double height; printf("키는 몇 cm 이예요?") scanf_s("%lf", &height); char what[256]; printf("무슨 범죄를 저질렀어요?") scanf_s("%s", what, sizeof(what)); //조서 내용 출력 printf("\m\---범죄자 정보---\n\n"); printf("이름 : %s\n", name); printf("나이 : %d\n".age); printf("몸무게 : %.2f\m", weight); printf("키 : %.2lf\n", height); printf("범죄 : %s\n", what); return(); } 저 이렇게 변경했는데 ;;오류가 너무 많아요ㅠㅠ 뭐가 잘못된건지 도통 모르겠습니다ㅠㅠㅠ...

Likes
0
Comments
3
Viewcount
411