Skip to content

Instantly share code, notes, and snippets.

@DeclanGas
Created June 23, 2022 16:41
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 DeclanGas/e4879ff09575eb743bb34e13a8e59a52 to your computer and use it in GitHub Desktop.
Save DeclanGas/e4879ff09575eb743bb34e13a8e59a52 to your computer and use it in GitHub Desktop.
#include <cs50.h>
#include <stdio.h>
int main(int argc, string argv[])
{
if (argc != 2)
{
printf("You need to provide the name in the command line.\n");
return 1;
}
else
{
printf("hello, %s\n", argv[1]);
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment