Sesiones de PyR
#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 RespuestasEn tendencia hoy
Hello World!
0 Votes
Script file names
0 Votes
Without degree job
0 Votes
Html learn
1 Votes
Java doubt coders
0 Votes
Python ???
0 Votes