fork download
  1. #include<stdio.h>
  2. main()
  3. {
  4. char a[10];
  5. printf("what is your name?\t:");
  6. scanf("%s",&a);
  7. char b[10];
  8. printf("what is your nickname?\t:");
  9. scanf("%s",&b);
  10. int c;
  11. printf("how old are you?\t:");
  12. scanf("%d",&c);
  13. char d[10];
  14. printf("where do you study?\t:");
  15. scanf("%s",&d);
  16. float e;
  17. printf("how tall are you?\t:");
  18. scanf("%f",&e);
  19.  
  20. printf("\nName : %s,a");
  21. printf("\nNickname : %s,b");
  22. printf("\nAge : %d,c");
  23. printf("\nSchool : %s,d");
  24. printf("\nTall : %s,e");
  25. }
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
what is your name?	:what is your nickname?	:how old are you?	:where do you study?	:how tall are you?	:
Name : ,a
Nickname : (null),b
Age : 0,c
School : (null),d
Tall : (null),e