0

Write c++ peogram to convert an input decimal number into its hexadecimal equivalent

Write c++ peogram to convert an input decimal number into its hexadecimal equivalent

7th Oct 2016, 7:13 AM
miss comp engineer
miss comp engineer - avatar
2 Réponses
+ 1
#include <iostream> using namespace std; int main() { double n; cout << "Enter an decimal number: "; cin >> n; cout << hex << n << endl; return 0; }
9th Oct 2016, 8:34 AM
Red Hedgehog
Red Hedgehog - avatar
0
Thank u (:
9th Oct 2016, 2:55 PM
miss comp engineer
miss comp engineer - avatar