druha verzia
This commit is contained in:
parent
679ac1a18e
commit
e1f2bf693b
@ -1,6 +1,20 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main (){
|
int main (){
|
||||||
printf("Ahoj Svet\n");
|
int c = 0;
|
||||||
|
int counter = 0;
|
||||||
|
while(c != EOF){
|
||||||
|
c = getchar();
|
||||||
|
if (c >= 'a' && c <= 'z'){
|
||||||
|
putchar (c - 'a' + 'A');
|
||||||
|
}
|
||||||
|
else if ( c >= 'A' && c <= 'Z'){
|
||||||
|
putchar (c + 'a' - 'A');
|
||||||
|
}
|
||||||
|
counter++;
|
||||||
|
}
|
||||||
|
|
||||||
|
printf("\nPočet riadkov: %d\n",counter);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user