Обсуждения
What is hexadecimal
3 голосов
2 ответовOctal system
2 голосов
1 ответparseInt() method
1 голос
2 ответовPI to more than 15 digits
0 голосов
6 ответовwhy is it <=36?
1 голос
2 ответов#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 голосов
5 ответовComo pasar de binario a decimal?
0 голосов
2 ответовHow should I solve this challenge?
4 голосов
3 ответовАктуальное сегодня
@sololearn Python
1 Votes
I've a HTML code question
0 Votes
Appointment Booking website
0 Votes
C++
0 Votes
Activate account
0 Votes
Is this for use
0 Votes