Q&A Discussões
Please... Explain...
0 Voto
2 Respostaswhy is it giving n??
0 Voto
2 Respostas#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 Votos
5 RespostasPlz explain output?
0 Voto
2 RespostasPlease Helpp
1 Voto
1 RespostaC#.net datatype
0 Voto
1 RespostaQuente hoje
Loops and conditions
2 Votes
photo upload issue in html code
0 Votes
app for lessons
1 Votes
Any coding competitions?
1 Votes
Rise of AI
1 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes