Lisaveta777

Prata 7.2

Aug 6th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. //заменять все символы, кроме пробельного, следующим символом в ANSI2
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6.     char ch;
  7.  
  8.     while( (ch = getchar()) !='\n')
  9.     {
  10.         if(ch!=' ')
  11.             putchar(++ch);
  12.         else
  13.             putchar(ch);
  14.  
  15.     }
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment