SAD
This commit is contained in:
parent
5ae1e8f5aa
commit
2d4380cb6d
@ -1,24 +1,17 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
int c = 1;
|
int c = 0;
|
||||||
int a = 0;
|
int big;
|
||||||
int b = 0;
|
char d;
|
||||||
char small[] = "abcdefghijklmnopqrstuvwxyz";
|
while( c != EOF){
|
||||||
char big[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
||||||
while(c = 1){
|
|
||||||
c = getchar();
|
c = getchar();
|
||||||
while(a < 26){
|
if (c >= 'a' && c <= 'z'){
|
||||||
if(c == small[a]){
|
big = c - 'a' + 'A';
|
||||||
c = big[a];
|
d = big;
|
||||||
break;
|
c = d;
|
||||||
}else if(c == big[a]){
|
|
||||||
c = small[a];
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
putchar (c);
|
||||||
}
|
}
|
||||||
b++;
|
|
||||||
}
|
|
||||||
printf("Vot = %d and vot = %d\n", a, b);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user