Sesiones de PyR
Please... Explain...
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 Respuestaswhy is it giving n??
0 Votos
2 RespuestasPlz explain output?
0 Votos
2 RespuestasPlease Helpp
1 Voto
1 RespuestaC#.net datatype
0 Votos
1 RespuestaEn tendencia hoy
C pointers
1 Votes
Python
0 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes