Sesiones de PyR
What is hexadecimal
3 Votos
2 RespuestasOctal system
2 Votos
1 RespuestaparseInt() method
1 Voto
2 RespuestasJava
0 Votos
4 Respuestaswhy is it <=36?
1 Voto
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 RespuestasEn tendencia hoy
I need advice
1 Votes
What is Typecasting?
1 Votes
Stream
1 Votes
Subscription
0 Votes
Make a app
0 Votes
Java Advanced Module
0 Votes