Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char name[50];
- char pet[50];
- printf("Enter your name: ");
- scanf("%[^\n]%*c", name);
- printf("Enter your pet's name: ");
- scanf("%[^\n]%*c", pet);
- printf( "%s should take %s for a stroll in the park...", name, pet);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement