2022-02-20 12:20:20 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(){
|
|
|
|
int c = 1;
|
2022-02-20 12:33:26 +00:00
|
|
|
int a = 0;
|
|
|
|
int b = 0;
|
2022-02-20 12:26:50 +00:00
|
|
|
char small[] = "abcdefghijklmnopqrstuvwxyz";
|
|
|
|
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
2022-02-20 12:20:20 +00:00
|
|
|
while(c = 1){
|
|
|
|
c = getchar();
|
2022-02-20 12:33:26 +00:00
|
|
|
while(a < 26){
|
|
|
|
if(c == small[a]){
|
|
|
|
c = big[a];
|
2022-02-20 12:26:50 +00:00
|
|
|
break;
|
2022-02-20 12:33:26 +00:00
|
|
|
}else if(c == big[a]){
|
|
|
|
c = small[a];
|
2022-02-20 12:26:50 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2022-02-20 12:33:26 +00:00
|
|
|
b++;
|
2022-02-20 12:20:20 +00:00
|
|
|
}
|
2022-02-20 12:33:26 +00:00
|
|
|
printf("Vot = %d and vot = %d\n", a, b);
|
2022-02-20 12:20:20 +00:00
|
|
|
return 0;
|
|
|
|
}
|