Discussioni Q&A
What is hexadecimal
3 Voti
2 RisposteOctal system
2 Voti
1 RispostaparseInt() method
1 Voto
2 RisposteJava
0 Voti
4 Rispostewhy is it <=36?
1 Voto
2 Risposte#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 Voti
5 RispostePopolare oggi
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Salut tout le monde
1 Votes