Update 'du1/program.c'
This commit is contained in:
parent
3b51500014
commit
1d10b5e3ed
@ -1,9 +1,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
int main(){
|
int main(){
|
||||||
int r;
|
int r, count = 0;
|
||||||
while((r = getchar()) !=EOF && r){
|
while((r = getchar()) !=EOF && r){
|
||||||
if (r == '\n'){
|
if (r == '\n'){
|
||||||
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(r >= 'a' && r <= 'z'){
|
if(r >= 'a' && r <= 'z'){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user