52_字符逆序

#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;

int main()
{
    char c[100];
    gets(c);
    for(int i=strlen(c)-1;i>=0;i--){
        cout<<c[i];
    }
    return 0;
}
发布了37 篇原创文章 · 获赞 4 · 访问量 1934

猜你喜欢

转载自blog.csdn.net/qq_41440031/article/details/103910859
今日推荐