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
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;
}
0
Thank u (: