123
This commit is contained in:
parent
8677defd3f
commit
5ae1e8f5aa
@ -2,19 +2,23 @@
|
|||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
int c = 1;
|
int c = 1;
|
||||||
|
int a = 0;
|
||||||
|
int b = 0;
|
||||||
char small[] = "abcdefghijklmnopqrstuvwxyz";
|
char small[] = "abcdefghijklmnopqrstuvwxyz";
|
||||||
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||||
while(c = 1){
|
while(c = 1){
|
||||||
c = getchar();
|
c = getchar();
|
||||||
for(int i = 0; i < 26; i++){
|
while(a < 26){
|
||||||
if(c == small[i]){
|
if(c == small[a]){
|
||||||
c = big[i];
|
c = big[a];
|
||||||
break;
|
break;
|
||||||
}else if(c == big[i]){
|
}else if(c == big[a]){
|
||||||
c = small[i];
|
c = small[a];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
b++;
|
||||||
}
|
}
|
||||||
|
printf("Vot = %d and vot = %d\n", a, b);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user