View Code of Problem 52

#include<stdio.h>
#include<math.h>
#include<string.h>
int main(int argc, char** argv) {
	
	/*
	将一个字符串str的内容颠倒过来,并输出。str的长度不超过100个字符。
	*/
	
	char str[110];
	gets(str);
	for(int i = strlen(str) - 1 ; i >= 0 ;i--){
		printf("%c" , str[i]);
	}
	
	 
	return 0 ;
}












Double click to view unformatted code.


Back to problem 52