Dyskusje Q&A
#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 głosów
5 odpowiedziPopularne dzisiaj
Still confused
3 Votes
Python
1 Votes
Code bits
4 Votes
Programm for creating
0 Votes
How to add watermark in a box
2 Votes
❗❗❗HELP❗❗❗
1 Votes