#include <stdio.h>
int reverseSentence() {
char c;
scanf("%c", &c);
if (c != '\n') {
reverseSentence();
printf("%c", c);
}
}
int main() {
printf("Enter a sentence: ");
reverseSentence();
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: