Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bible.h>
- int main()
- {
- char str[30];
- int i=0;
- printf("Vvedite slovo: "); gets(str);
- int flag=0;
- while(str[i])
- {
- if (str[i]=='.')
- {
- flag=1;
- }
- if ((!(flag==0&&str[i]==','))&&(!(flag==1)&&str[i]=='3'))
- {
- str[i]='+';
- printf("%c",str[i]);
- }
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement