#include <stdio.h>
void reverse();
void main()
{
printf("Please enter a sentence: ");
reverse();
getch();
}
void reverse()
{
char c;
scanf("%c",&c);
if(c != '\n')
{
reverse();
printf("%c",c);
}
}
void reverse();
void main()
{
printf("Please enter a sentence: ");
reverse();
getch();
}
void reverse()
{
char c;
scanf("%c",&c);
if(c != '\n')
{
reverse();
printf("%c",c);
}
}
No comments:
Post a Comment