Created
September 1, 2020 16:29
-
-
Save fijiaaron/f80e36028816f70fd0559673cca3d5fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define A 65 | |
#define a 97 | |
int main(int argc, char**argv) | |
{ | |
int i = 1; | |
while(i < argc) | |
{ | |
int j = 0; | |
while(argv[i][j] != '\0') | |
{ | |
if (a <= argv[i][j] && a + 25 >= argv[i][j]) | |
{ | |
argv[i][j] += (A-a); | |
} | |
j++; | |
} | |
printf("%s", argv[i]); | |
i++; | |
if (i < argc) | |
{ | |
printf(" "); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment