Q&A Discussões
#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 RespostasQuente hoje
Inserting a photo in python
1 Votes
HOW TO CREATE A FORM?
0 Votes
Please make it work.
2 Votes
Sorting Algorithm
1 Votes
????
0 Votes
hi
0 Votes
Css
0 Votes
If Else im confused
0 Votes