Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- //choosing teams
- char lastName[20];
- printf("Enter your last name:\n");
- scanf("%s", lastName);
- //test the first letter
- (lastName[0] < 'M') ? printf("Blue team") : printf("Red team");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement