Q&A Discussions
how to create a game or app
0 Votes
4 Answerswhat is blank lines
0 Votes
3 Answershow to get xp
40 Votes
40 AnswersPlease explain this 🙏
0 Votes
4 Answers#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 Votes
5 AnswersHot today
Using Python on VScode
2 Votes
Python Developer
0 Votes
Average of Two Numbers
0 Votes
Wayss
0 Votes
Hearts
0 Votes