Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include<bible.h>
  2.  
  3. int main()
  4. {
  5. char str[30];
  6. int i=0;
  7. printf("Vvedite slovo: "); gets(str);
  8. int flag=0;
  9.  
  10. while(str[i])
  11. {
  12.         if (str[i]=='.')
  13.         {
  14.         flag=1;
  15.         }
  16.         if ((!(flag==0&&str[i]==','))&&(!(flag==1)&&str[i]=='3'))
  17.  
  18.         {
  19.             str[i]='+';
  20.             printf("%c",str[i]);
  21.               }
  22.         i++;
  23. }
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement