#include <stdio.h>\n\nint main()\n{\n  char str[20], temp;\n  int len, i, j;\n\n  printf("Enter a word: ");\n  scanf("%s", str);\n\n  len = strlen(str);\n  // Looping to print each word per line \n  for (i=0; i<len; i++)\n  {\n     for (j=len; j > i; j--)\n     {\n        printf("%c", str[j]);\n     }\n     printf("\\n");\n  }\n  return 0;\n}\n\n/*\nOutput:\napple\npple\nple\nle\ne\n*/
"Write a code to output a word pyramid from the word apple."?