summaryrefslogtreecommitdiff
path: root/wk2/lect2/status.c
blob: 1c7142ab9693f452a149e814ec4022278dbd17f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <cs50.h>

int main(int argc, string argv[])
{
    if (argc != 2)
    {
        printf("Missing command-line argument\n");
    }
    else
    {
        printf("hello, %s\n", argv[1]);
    }
}