/* 
 * Example of string input/output with scanf and printf
 */ 

#include <stdio.h>

#define STR_LEN  10

int
main(void)
{
    char dept[STR_LEN], days[STR_LEN];
    int  course_num, time;

    printf("Enter department code, course number, days and ");
    printf("time like this:\n> COSC 2060 MWF 1410\n> ");

    scanf("%s%d%s%d", dept, &course_num, days, &time);

    printf("%s %d meets %s at %d\n", dept, course_num, days, time);

    return (0);
}

