This commit is contained in:
Yaroslav Orlianskyi 2022-03-01 18:30:30 +01:00
parent 5ae1e8f5aa
commit 2d4380cb6d

View File

@ -1,24 +1,17 @@
#include <stdio.h>
int main(){
int c = 1;
int a = 0;
int b = 0;
char small[] = "abcdefghijklmnopqrstuvwxyz";
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
while(c = 1){
int c = 0;
int big;
char d;
while( c != EOF){
c = getchar();
while(a < 26){
if(c == small[a]){
c = big[a];
break;
}else if(c == big[a]){
c = small[a];
break;
}
if (c >= 'a' && c <= 'z'){
big = c - 'a' + 'A';
d = big;
c = d;
}
b++;
putchar (c);
}
printf("Vot = %d and vot = %d\n", a, b);
return 0;
}