daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. /*Программа, которая печатает содержимое своего ввода,
  3. помещая по одному слову на каждой строке*/
  4.  
  5. int main ()
  6. {
  7.     int q = 0;
  8.     int c = getchar ();
  9.     while (c != '1')
  10.         {if (c == ' ')
  11.             q = '\n';
  12.         else q = c;
  13.         putchar (q);
  14.         c = getchar ();}
  15.  
  16.     return 0;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top