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 Respuestashello guys? how are you. i am zeeshan ali from pakistan. i have been in touch with this app for a very long long time. i have found so many friends awesome.. and we do combine study over the internet. anyone of you is interested then join us on facebook by searching this number 03033951255
0 Votos
4 RespuestasEnum,private,finale
4 Votos
4 RespuestasEn tendencia hoy
Need suggestions
0 Votes
Best code for creating games?
0 Votes
progaming
1 Votes
Java full stack
0 Votes
Calculator
0 Votes
Anyone Learning Godot?
1 Votes
Duration of heart refilling
0 Votes