#include <stdio.h>
      void reverseSentence();
      int main() {
          printf("Enter a sentence: ");
          reverseSentence();
          return 0;
      }
      void reverseSentence() {
          char c;
          scanf("%c", &c);
          if (c != '\n') {
              reverseSentence();
              printf("%c", c);
          }
      }
      
      C language logo

      Recursion Reverse

      0

      0

      avatar
      natalie19970

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.