Created
April 26, 2016 16:26
-
-
Save an0th3rhuman/9a0d8802ac71fec6b9b72987db903982 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void Reverse(); | |
int main() | |
{ | |
printf("Enter a sentence: "); | |
Reverse(); | |
return 0; | |
} | |
void Reverse() | |
{ | |
char c; | |
scanf("%c",&c); | |
if( c != '\n') | |
{ | |
Reverse(); | |
printf("%c",c); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment