Q&A Discussions
[SOLVED]Explain the output?
8 Votes
5 AnswersPlease... Explain...
0 Votes
2 Answerswhy is it giving n??
0 Votes
2 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 AnswersPlz explain output?
0 Votes
2 AnswersPlease Helpp
1 Vote
1 AnswerC#.net datatype
0 Votes
1 AnswerHot today
Ejercicio Pytho
0 Votes
Please rate my code from 1 to 10
2 Votes
Square Roots
0 Votes
Pig Latin
0 Votes
Uuu
1 Votes
How to start
0 Votes