#include <stdio.h>
void myToUpper(char s[]) {
int i;
for (i = 0; s[i] != '\0'; i++) {
if ('a' <= s[i] && s[i] <= 'z') { // Corrected condition
s[i] = s[i] - 32; // Converts lowercase to uppercase
}
}
}
int main() {
char s[100];
myToUpper(s);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIG15VG9VcHBlcihjaGFyIHNbXSkgewogICAgaW50IGk7CiAgICBmb3IgKGkgPSAwOyBzW2ldICE9ICdcMCc7IGkrKykgewogICAgICAgIGlmICgnYScgPD0gc1tpXSAmJiBzW2ldIDw9ICd6JykgeyAgLy8gQ29ycmVjdGVkIGNvbmRpdGlvbgogICAgICAgICAgICBzW2ldID0gc1tpXSAtIDMyOyAgLy8gQ29udmVydHMgbG93ZXJjYXNlIHRvIHVwcGVyY2FzZQogICAgICAgIH0KICAgIH0KfQoKaW50IG1haW4oKSB7CiAgICBjaGFyIHNbMTAwXTsKICAgIHNjYW5mKCIlcyIsIHMpOwogICAgcHJpbnRmKCIlcyAtPiAiLCBzKTsKICAgIG15VG9VcHBlcihzKTsKICAgIHByaW50ZigiJXNcbiIsIHMpOwogICAgcmV0dXJuIDA7Cn0K