题解 1192: 十->二进制转换

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

十进制转二进制

摘要:小白,有好的方法请留言交流 ```c #include int main() { int s[100]; //用来存放二进制数 int n; //……

十进制向二进制转换

摘要:解题思路:用一个while循环通过每次让n对2求余,结果保留的一个数组中,再把数组倒着输出,注意事项:如果n小于零,需要提前输入一个负号,再加上n=-n;如果n为0是,直接输出0参考代码:#inclu……

十->二进制转换qwdddddqwdq

摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int ten; int two[100]; while (scanf("%d", &ten) != EOF……

题解 1192: 十->二进制转换

摘要:参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int x;   while(scanf("%d",&x)!=EOF)   {    ……

我的思路哦

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n, a[100], i; while (scanf("%d", &n)……

c++ 递归栈

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; void DP(int n) {     if(……

编写题解 1192: 十->二进制转换

摘要:解题思路:注意事项://取绝对值,方便计算以及输出//输出10进制数//输出二进制数负号//存放二进制数//取绝对值,方便计算以及输出//换行参考代码:#include <stdio.h>#inclu……

十->二进制转换 (C语言代码)

摘要:解题思路:  阶次除二      逆序输出注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int a[18];int ma……