Write a program which will ask for two integer numbers (a and b). The program will multiply these two numbers, a and b, using repeated addition (CANNOT use multiplication operation) and print out the result.
This is what I have so far.Code:#include <iostream>
using namespace std;
int main()
{
int A, B, result = 0;
cout << "Enter first number:" << endl;
cin >> A;
cout << "Enter second number:" << endl;
cin >> B;
I know that 2 * 5 = 10 and 2 + 2 + 2 + 2 + 2 = 10
I am not sure how to write the code.
Code:I DON'T want you to give me the answer unless I really really need it to understand.