/*输入一个字符串实现逆序输出*/
#include <stdio.h>
#include <stdlib.h>

void print()
{
    char c;
    scanf("%c",&c);
    if(c != '#')
        print();
    if(c != '#')
        printf("%c",c);
}
int main()
{
    printf("请输入字符串,以#结束:\n");
    print();
    return 0;
}

  

相关文章:

  • 2021-06-05
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-03
  • 2022-12-23
  • 2021-10-14
  • 2021-03-30
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
相关资源
相似解决方案