Q&A Discussões
How to develop a game
-2 Votos
4 RespostasCout__x
0 Voto
2 Respostas#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 Votos
5 RespostasPlz answer?
1 Voto
2 RespostasWher is mistake?
0 Voto
5 RespostasQuente hoje
Ejercicio Pytho
0 Votes
Pig Latin
0 Votes
Please rate my code from 1 to 10
2 Votes
Square Roots
0 Votes
Uuu
1 Votes
How to start
0 Votes