Q&A Discussies
What is hexadecimal
3 Stemmen
2 AntwoordenOctal system
2 Stemmen
1 AntwoordparseInt() method
1 Stem
2 AntwoordenPI to more than 15 digits
0 Stemmen
6 AntwoordenJava
0 Stemmen
4 Antwoordenwhy is it <=36?
1 Stem
2 Antwoorden#include <iostream>
#include <bitset>
int main()
{
int myDecimalNumber;
std::cin >> myDecimalNumber;
std::string binary = std::bitset<8>(myDecimalNumber).to_string(); //to binary
std::cout<<binary<<"\n";
unsigned long decimal = std::bitset<8>(binary).to_long();
std::cout<<decimal<<"\n";
return 0;
}
2 Stemmen
5 AntwoordenComo pasar de binario a decimal?
0 Stemmen
2 AntwoordenPopulair vandaag
Best language?
0 Votes
Bro can you fix yt error?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Java full stack
0 Votes
Duration of heart refilling
0 Votes