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
SQL
3 Votes
HTML/CSS questions
0 Votes
Html
1 Votes
Find courses
0 Votes
How to learn css and html
0 Votes
Certificate Problem
0 Votes