Question #23805

program that performs arithmetic multiplication of hexadecimal in c++

Expert's answer

#include <conio.h>
#include <iostream>

using namespace std;

void main()
{
int a;
int b;

cout << "Enter first hexadecimal number: ";
cin >> hex >> a;

cout << "Enter second hexadecimal number: ";
cin >> hex >> b;

cout << "The product is: " << hex << a * b;
_getch();
}
LATEST TUTORIALS
APPROVED BY CLIENTS