Advertisement
Miraziz

Untitled

Mar 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  int c,p;
  5.  c=getchar();
  6.  while(c!=EOF){
  7.     if(c!=' ') {
  8.         p=0; }
  9.     if(c==' ') {
  10.         p++; }
  11.     if(p<=1){
  12.         putchar(c); }
  13.     if(p==1){
  14.         printf("\n"); }
  15.     c=getchar(); }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement