题解 | 牛牛逆序输出
牛牛逆序输出
https://www.nowcoder.com/practice/d981181ce18e4cce945fdf52daf037a1
#include <stdio.h> int main() { int n; scanf("%d",&n); while(n>0){ printf("%d",n%10); n=n/10; } return 0; }
牛牛逆序输出
https://www.nowcoder.com/practice/d981181ce18e4cce945fdf52daf037a1
#include <stdio.h> int main() { int n; scanf("%d",&n); while(n>0){ printf("%d",n%10); n=n/10; } return 0; }
相关推荐