Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <ctype.h>
- //18.
- //Read in a string the first name and the last name of a person (both en-
- //tered on the same line).
- void main (void)
- {
- char f_name[20];
- char l_name[20];
- // printf("Enter your first name: ");
- // scanf("%s", f_name);
- // printf("Enter your last name: ");
- // scanf("%s", l_name);
- // printf("");
- // printf("Your name is %s %s", f_name, l_name);
- printf("\n\nPe aceeasi linie: ");
- scanf("%s%s",f_name, l_name);
- printf("Your name is %s %s", f_name, l_name);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement