Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why doesn't this work?

Name: Anonymous 2011-01-30 18:00

Why doesn't this work?


#include <stdio.h>

main()
{
int c, nl;

nl = 0;
while ((c = getchar()) != EOF)
if (c == '\n')
++nl;
printf("%d\n", nl);
}

Name: Anonymous 2011-01-30 18:13

ONE WORD: THE OPTIONAL INDENTATION OF CODE. THREAD OVER

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List