Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define SIZE1 12
- #define SIZE2 10
- int main(void) {
- char train[SIZE1];
- int ticket;
- char days[SIZE2];
- int time;
- printf("Enter train num, ticket number, days and time like this: ICS 103 SUMT 0810\n");
- printf("> ");
- scanf("%12s%d%10s%d", train, &ticket, days, &time);
- printf("%s %d %s %d\n", dept, course, days, time);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement