Skip to content

Instantly share code, notes, and snippets.

@danielsaad
Created October 12, 2017 00:09
Show Gist options
  • Save danielsaad/aa2ad13c0ff5a35e57deaf91ec4dc217 to your computer and use it in GitHub Desktop.
Save danielsaad/aa2ad13c0ff5a35e57deaf91ec4dc217 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void){
char str[51];
while(scanf("%50[^\n]%*c",str)!=EOF){
printf("%s lido.\n",str);
}
return 0;
}
@danielsaad
Copy link
Author

Pressione ctrl+D no terminal para efetivar o EOF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment