题解 | #牛牛逆序输出#
牛牛逆序输出
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; } }