标签:运行 ima 技术 use col include ++ 进制转化 ret
#include <stdio.h> #include<stdlib.h> int main() { int n; int a[32]; scanf("%d", &n); int i = 0; while (n > 0) { a[i++] = n & 1; n = n >> 1; } while (i--) { printf("%d", a[i]); } printf("\n"); system("pause"); return 0; }
运行结果如下:
标签:运行 ima 技术 use col include ++ 进制转化 ret
原文地址:https://www.cnblogs.com/pyp2001/p/11695751.html