Answers for "in thuong thanh in hoa"

0

in thuong thanh in hoa

#include<stdio.h>
#include<string.h>

int main() {
    char s[100];
    scanf("%s", s);
    for (int i = 0; i < strlen(s); i++) {
        if (s[i] >= 'a' && s[i] <= 'z') {
            s[i] -= 32;
        }
    }
    printf("%s", s);
    return 0;
}
​
Posted by: Guest on July-18-2021

Browse Popular Code Answers by Language