14 lines
288 B
C
14 lines
288 B
C
#include <stdio.h>
|
|
main (){
|
|
int c, nb,nt,nl = 0;
|
|
while ((c = getchar()) != EOF)
|
|
{
|
|
if(c='\0')
|
|
++nb;
|
|
if(c='\t')
|
|
++nt;
|
|
if(c='\n')
|
|
++nl;
|
|
}
|
|
printf("\nThere are %d blanks, %d tabs, and %d new lines\n", nb,nt,nl);
|
|
} |