Example:
INPUT
This is easy
OUTPUT
ysae si sihT
#include<stdio.h>
void reverse()
{
int c = getchar();
if (c != EOF) {
reverse();
putchar(c);
}
}
int main()
{
reverse();
return 0;
}
Thanks
Happy Computing !
INPUT
This is easy
OUTPUT
ysae si sihT
#include<stdio.h>
void reverse()
{
int c = getchar();
if (c != EOF) {
reverse();
putchar(c);
}
}
int main()
{
reverse();
return 0;
}
Thanks
Happy Computing !
No comments:
Post a Comment