Advertisement
biswasrohit20

1234

Apr 27th, 2021
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. char name[50];
  6. char pet[50];
  7. printf("Enter your name: ");
  8. scanf("%[^\n]%*c", name);
  9. printf("Enter your pet's name: ");
  10. scanf("%[^\n]%*c", pet);
  11. printf( "%s should take %s for a stroll in the park...", name, pet);
  12. return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement