fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. float weight;
  6. int age;
  7. char sex;
  8.  
  9. printf("체중, 나이, 성별(M/F) 순으로 입력하세요.\n");
  10. scanf("%f %d %c", &weight, &age, &sex);
  11.  
  12. printf("체중 :%f\n", weight);
  13. printf("나이 : %d\n", age);
  14. printf("성별 : %c\n", sex);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
체중, 나이, 성별(M/F) 순으로 입력하세요.
체중 :765667123223827314654283038720.000000
나이 : 32766
성별 :