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ÃLCULO DE FATORIAL E VARIAVEIS
0 gÅosów
4 odpowiedziC#.net datatype
0 gÅosów
1 OdpowiedźPopularne dzisiaj
I am new
1 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes