Code:
#include <stdio.h>
 
int main() {
    char line[200], str[50], str2[50];
 
    printf("> ");
    fgets(line, sizeof line, stdin);
 
    int n = sscanf(line, "%49s %49s", str, str2);
 
    if (n == 1)
        printf("You entered one string: %s\n", str);
    else if (n == 2)
        printf("You entered two strings: %s %s\n", str, str2);
 
    return 0;
}