13062 - Reverse a String using Recursion   

Description

Please write a recursive program to reverse a given string.

 

We have provided the partial judge code (13062.c) below for you.

All you need to do is complete the void reverse(char *str, int k) function and submit it to NTHU Online Judge System.

void reverse(char *str, int k){

             ...

             ...

}

 

Attention: Using recursion to solve this problem.

 

Input

Given a string.

 

Output

Print the reversed string.

 

Sample Input  Download

Sample Output  Download

Partial Judge Code

13062.c

Partial Judge Header

13062.h

Tags




Discuss