25 lines
384 B
C
25 lines
384 B
C
#include <stdio.h>
|
|
|
|
int main(){
|
|
int c = 1;
|
|
int a = 0;
|
|
int b = 0;
|
|
char small[] = "abcdefghijklmnopqrstuvwxyz";
|
|
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
while(c = 1){
|
|
c = getchar();
|
|
while(a < 26){
|
|
if(c == small[a]){
|
|
c = big[a];
|
|
break;
|
|
}else if(c == big[a]){
|
|
c = small[a];
|
|
break;
|
|
}
|
|
}
|
|
b++;
|
|
}
|
|
printf("Vot = %d and vot = %d\n", a, b);
|
|
return 0;
|
|
}
|