sdut oj 1173 字符逆序

#include <stdio.h>
#include <string.h>
int main()
{
    char str[110];
    gets(str);
    int i, x;
    x = strlen(str);
    for(i = x - 1; i >= 0; i--)
    {
        printf("%c", str[i]);
    }
    return 0;
}

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2021-06-11
  • 2021-06-12
  • 2022-12-23
猜你喜欢
  • 2021-04-27
  • 2022-01-13
  • 2021-11-01
  • 2021-08-07
  • 2021-12-30
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案