Step 4 of 5
Characters and words
%creads one character, and it does not skip whitespace. Write" %c"(with a leading space) to skip spaces and newlines first.%sreads a word (up to the next space) into a char array. Arrays don't need&. You'll learn why in the pointers module.
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.