Description

請撰寫一個程式讓使用者輸入一個字串, 並把輸入的字串倒過來。

Please write a program that allows the user to input a string and reverses the input string.

Input

輸入包含一個字串 s (最多50個字元)。

Input contains an string s (up to 50 characters).

Output

請輸出倒過來的字串。

Please output the reverse string.

Sample Input 1

abcde

Sample Output 1

edcba
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
int main(){
	char c[51]; int temp;
	scanf("%s",&c);
	for(int i = strlen(c)-1; i>=0;i--){
		printf("%c",c[i]);
	}	
	
	
	
	
	return 0;
}