题解 | #牛牛逆序输出#

牛牛逆序输出

https://www.nowcoder.com/practice/d981181ce18e4cce945fdf52daf037a1

#include <iostream>
#include <math.h>
#include <string>

using namespace std;


int main()
{
    long long n;
    scanf("%lld",&n);
    while(n){
        printf("%d",n%10);
        n /= 10;
    }

}

全部评论

相关推荐

面了100年面试不知...:头像换成柯南再试试
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务