#include using namespace std; int times(int mpr, int mcand) { int prod = 0; while (mpr != 0) { if (mpr % 2 == 1) prod = prod + mcand; mpr /= 2; mcand *= 2; } return prod; } int main(){ int n, m; cout...


#include


using namespace std;


int times(int mpr, int mcand) {


int prod = 0;


while (mpr != 0)


{


if (mpr % 2 == 1)


prod = prod + mcand;


mpr /= 2;


mcand *= 2;


}


return prod;


}


int main(){


int n, m;


cout < "enter="" two="" numbers:="">


cin >> n >> m;


cout < "product:="" "="">< times(n,="" m)=""><>


return 0;


}


convert the following c++ code into pep/9 assembly language




Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here