Code Snippets C

#include
#include
int main(void)
{
char ch;
for(ch = getchar(); ch != 'r'; ch = getchar());
printf("Found r.");
return 0;
}