repo.or.cz
/
C-Programming-Examples.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added program to display datatype info.
[C-Programming-Examples.git]
/
line_counter.c
blob
4a5c3ad2fc696377efced2f751326d3a719f23c4
1
#include <stdio.h>
2
3
main
()
4
{
5
int
c
,
nl
;
6
nl
=
0
;
7
while
((
c
=
getchar
()) !=
EOF
)
8
if
(
c
==
'
\n
'
)
9
++
nl
;
10
printf
(
"%d
\n
"
,
nl
);
11
}