Advertisement
alien_fx_fiend

cowsay [modified] /w input source

Jul 19th, 2020
970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <cstring>
  3. //#define MAX 100
  4.  
  5. int main()
  6. {
  7. //char b[100];
  8. char text[800];
  9. //char b2[100];
  10. //char b3[100];
  11. //scanf("%s", b);
  12. fgets(text, 800, stdin);
  13. text[strlen(text) - 1] = '\0'; //=0;
  14. //scanf("%s", b2);
  15. //scanf("%s", b3);
  16. printf("< %s >\n", text);
  17. //printf("/ %s \\\n", b2);
  18. //printf("\\ %s /\n", b3);
  19.   printf("  \\ ^__^\n");
  20.   printf("    (oo)\\_______\n");
  21.   printf("    (__)\\       )\\/\\\n");
  22.   printf("        ||----w |\n");
  23.   printf("        ||     ||\n");
  24.   return (0);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement