fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. //datda
  5. char name[10], gender;
  6. int age;
  7. float gpa;
  8.  
  9. //input
  10. printf("Input Name = ");
  11. scanf("%s",&name);
  12.  
  13.  
  14. //output
  15. printf("---------------------------------\n");
  16. printf("Student Name = %s\n", name);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 5288KB
stdin
stdout
Input Name = ---------------------------------
Student Name =