63 066
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #20737 in C++ for ahmed

Question #20737
write afunction int mul(int, int) which takes two numbers and do multiplication by repeated addition. write aprogram to inter tow numbers and print the product
Expert's answer

//#include <stdafx>
#include <iostream>
using namespace std;


void mul(int a,int b)
{
double V=0;

& V=a*b;

cout << "a*b= "<< V<< endl;
}




int main()
{
int digit;
cout << "Enter f and b: ";
int a,b;
cin >> a;
& cin >> b;

mul(a,b);

// system("pause");
return 0;
}

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions