C/C++ Arena

Step 4 of 5

Characters and words

char name[32];
scanf("%31s", name);   // 31 = max chars, leaving room for the terminator

Your turn: the input is a name followed by a team letter, like s1mple T. Print s1mple plays on T.

Previous: Reading doubles Next: Did the read work?