+ 2
problem in converting decimal to hexadecimal
while(dec3>0) {R=dec3%16; if(R>9) { switch (R) { case 10: cout << "A"; break; case 11: cout << "B"; break; case 12: cout << "C"; break; case 13: cout << "D"; break; case 14: cout << "E"; break; case 15: cout << "F"; break;}} else { cout<<R;} R/16;} but not correct output
2 Antworten
+ 1
see this thread from today https://www.sololearn.com/discuss/388233/?ref=app
and my example
https://code.sololearn.com/cvnT36tvdWyw/?ref=app