program.c
This commit is contained in:
parent
1bbbd70c8e
commit
30d568c55b
BIN
du1/program
BIN
du1/program
Binary file not shown.
@ -15,18 +15,20 @@ int main(){
|
|||||||
else if(c >= 'A' && c <= 'Z'){
|
else if(c >= 'A' && c <= 'Z'){
|
||||||
c=c-'A'+'a'; //male pismeno na velke
|
c=c-'A'+'a'; //male pismeno na velke
|
||||||
}
|
}
|
||||||
|
else if(c=='\n'){
|
||||||
|
n++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
n++;
|
|
||||||
putchar(c);
|
putchar(c);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("Počet riadkov: %d\n", n/2); //vypise pocet zpouzitych znakov
|
printf("Počet riadkov: %d\n", n); //vypise pocet zpouzitych znakov
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user