Advertisement
Pavle_nis

Nizovi stirngova 1

Apr 5th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <stdio.h>
  3. #include <string.h>
  4. int main()
  5. {
  6.     char prez[10][30];
  7.     int i, br = 0;
  8.     for (i = 0; i < 5; i++)
  9.         scanf("%s", prez[i]);
  10.  
  11.     for (i = 0; i < 10; i++)
  12.         if (prez[i][0] == 'M')
  13.             prez[i][0] = 'S';
  14.  
  15.     for (i = 0; i < 5; i++)
  16.         printf("%s\n", prez[i]);
  17.     getch();
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement