mirror of
https://github.com/krislamo/knrc.git
synced 2024-11-10 00:30:35 +00:00
Character counting example v2
This commit is contained in:
parent
72093b7232
commit
3512ae49ab
@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
long nc;
|
double nc;
|
||||||
|
|
||||||
nc = 0;
|
for (nc = 0; getchar() != EOF; ++nc)
|
||||||
while (getchar() != EOF)
|
;
|
||||||
++nc;
|
printf("%.0f\n", nc);
|
||||||
printf("%ld\n", nc);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user