Skip to content

Instantly share code, notes, and snippets.

@jmichalenko
Created March 18, 2024 23:51
Show Gist options
  • Save jmichalenko/b6730559bcbb809be8f6cd4c857156da to your computer and use it in GitHub Desktop.
Save jmichalenko/b6730559bcbb809be8f6cd4c857156da to your computer and use it in GitHub Desktop.
CS50 Labs starter code
#include <cs50.h>
#include <stdio.h>
int main(int argc, string argv[])
{
if (argc != 3)
{
printf("Usage: ./exit <firstname> <lastname>\n");
}
else
{
// prints out hello followed by firstname, lastname
printf("hello, %s %s\n", argv[1], argv[2]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment