Sesiones de PyR
How to develop a game
-2 Votos
4 RespuestasCout__x
0 Votos
2 Respuestas#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 RespuestasPlz answer?
1 Voto
2 RespuestasWher is mistake?
0 Votos
5 RespuestasEn tendencia hoy
Audio adding
1 Votes
C#
0 Votes
Stuck in Quize
1 Votes
What is problem in this code
0 Votes
C Program
0 Votes
Software developer
0 Votes