Discussions Q&R
Please... Explain...
0 Vote
2 Réponseswhy is it giving n??
0 Vote
2 Réponses#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 RéponsesPlz explain output?
0 Vote
2 RéponsesPlease Helpp
1 Vote
1 RéponseC#.net datatype
0 Vote
1 RéponseAujourd'hui en vedette
I am new
1 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes