2
3 void mixit(char *s) {
4. int len
@;
5 while (s[len] != '\0') {
6
len++;
7
1
8
9
10
11
for (int i = 0; i < len - 1; i += 2) {
char t = s[i];
s[i] = s[i + 1];
s[i + 1] = t;
}
12
13
14
15
16
17
for (int i = 1; i < len; i += 2) {
if (s[i] >= 'A' && s[i] <= 'Z') {
s[i] = '@';
} else {
s[i] -= 32;
18
19
20
}
21
22 }
23
24 int main() {
25 char word[] = "HelloWorld";
26 mixit(word);
27 printf("%s", word);
28 return 0;
Answers
Answered by
2
what is this yeh konse language hai ???
Answered by
3
The answer is Understandable have a great day ahead
Similar questions