I want to create a small program that will get text with getchar() and print all the text added after the Ctr+D button
Here is my code:
The problem is it doesn't working any ideas?Code:#include <stdio.h> main() { int c; while(c=getchar()) != EOF) if(c=EOF) { putchar(c); } }