Skip to content

Instantly share code, notes, and snippets.

@fijiaaron
Created September 1, 2020 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fijiaaron/f80e36028816f70fd0559673cca3d5fa to your computer and use it in GitHub Desktop.
Save fijiaaron/f80e36028816f70fd0559673cca3d5fa to your computer and use it in GitHub Desktop.
#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