This commit is contained in:
Džubara 2024-02-23 13:58:04 +01:00
parent f4bfa5874a
commit 9a9e86b386

11
cv1/program.c Normal file
View File

@ -0,0 +1,11 @@
#include <"stdio.h">
char simulate_caps_lock(char c) {
if ('a' <= c && c <= 'z') {
return c - ('a' - 'A');
} else if ('A' <= c && c <= 'Z') {
return c + ('a' - 'A');
} else {
return c;
}
}