Dyskusje Q&A
[SOLVED]Explain the output?
8 głosów
5 odpowiedziPlease... Explain...
0 głosów
2 odpowiedziwhy is it giving n??
0 głosów
2 odpowiedzi#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 głosów
5 odpowiedziPlz explain output?
0 głosów
2 odpowiedziPlease Helpp
1 Głos
1 OdpowiedźC#.net datatype
0 głosów
1 OdpowiedźPopularne dzisiaj
Activities on sololearn
4 Votes
Html issue
2 Votes
Can you help me ?
1 Votes
Code coach
0 Votes
How I can use div
1 Votes
TIPS From Veterans
3 Votes
App development 🔥☝️
1 Votes
Playground input
1 Votes
What am I doing wring?
1 Votes