#include <stdio.h> int main () { char c1; for (; (c1 = getchar()) != '\n'; ) { //c1 = getchar(); printf("%c", c1); } printf("\n"); return 0; }
#include <stdio.h> int main( void ) { for( int c; c=getchar(), c!=EOF && c!='\n'; ) putchar( c ); putchar( '\n' ); return 0; }