Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- char prez[10][30];
- int i, br = 0;
- for (i = 0; i < 5; i++)
- scanf("%s", prez[i]);
- for (i = 0; i < 10; i++)
- if (prez[i][0] == 'M')
- prez[i][0] = 'S';
- for (i = 0; i < 5; i++)
- printf("%s\n", prez[i]);
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement