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
Ошибка в приложении Sololearn
1 Votes
NEO V2.0
1 Votes
Best language?
0 Votes
you con help mi
1 Votes
Bro can you fix yt error?
0 Votes