H2230823013


私信TA

用户名:dotcpp0607166

访问量:5178

签 名:

哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈

等  级
排  名 135
经  验 7385
参赛次数 2
文章发表 35
年  龄 3
在职情况 待业
学  校 贺州学院
专  业 数据

  自我简介:

谢谢大家,让大家见笑了

TA的其他文章

解题思路:

注意事项:

参考代码:

#include <stdio.h>

int main()

{

    int n,s=0;

    scanf("%d",&n);

    while(n!=0)

    {

        s=s*10+n%10;

        n=n/10;

    }

    printf("%d\n",s);

    return 0; 

}


 

0.0分

8 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区

#include <stdio.h>

int main()

{

    int n,s=0;

    scanf("%d",&n);

    while(n!=0)

    {

        s=s*10+n%10;

        n=n/10;

    }

    printf("%d\n",s);

    return 0;
2023-11-08 07:53:01
  • «
  • 1
  • »