Advertisement
Lisaveta777

Prata list 8.2 mistake

Aug 11th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.  
  6.     char ch; //i did with char, it's working, watch for answer here
  7.     //https://otvet.mail.ru/question/209913858
  8.  
  9.     //printf("%d\n",EOF);
  10.  
  11.     while( (ch = getchar()) !=EOF)
  12.     {
  13.         putchar(ch);
  14.  
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement