Answer to Question #23805 in C++ for janna

Question #23805
program that performs arithmetic multiplication of hexadecimal in c++
1
Expert's answer
2013-02-06T07:51:07-0500
#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();
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS