Professional Documents
Culture Documents
Imagine You Are Programming An Embedded Processor Using C/C++ and The Processor Does Not Contain Multiplier in Its ALU. Write A Program To
Imagine You Are Programming An Embedded Processor Using C/C++ and The Processor Does Not Contain Multiplier in Its ALU. Write A Program To
Imagine You Are Programming An Embedded Processor Using C/C++ and The Processor Does Not Contain Multiplier in Its ALU. Write A Program To
#include <iostream>
using namespace std;
int main()
{
int num1, num2,m=0;
cout << "Enter the first number" << endl;
//enter the first number
cin >> num1;
cout << "Enter the second number" << endl;
//enter the second number
cin >> num2;
for (int a=0 ; a < num2 ; a++)
m = m + num1;
cout << "The product of the two given numbers is
" << m << endl; //output of the product
system("pause");
return 0;
}