题目1055:数组逆置

来源:互联网 发布:java wait join区别 编辑:程序博客网 时间:2024/05/16 10:24

http://ac.jobdu.com/problem.php?pid=1055

#include<stdio.h>

#include<string.h>
int main()
{
    char s[205];
    int i;
    while(scanf("%s",s)!=EOF){
        for(i=strlen(s)-1;i>=0;i--) printf("%c",s[i]);
        printf("\n");            
    }
    return 0;
}
原创粉丝点击