Computer Science, asked by mais10, 11 months ago

Write a method called Multi(int n1,int n2) that receives two integers n1 and n2, the method should
print all the numbers that result from multiplying all numbers from 1 to n1 by all numbers from 1
to n2.

Answers

Answered by shwbd0117
0

Answer:

void Multi(int n1, int n2)

num=100; // give number the value till which you want to multiply

for(int i=1; i<num; i++) {

cout<<n1*i<<endl;

}

for(int i=1; i<num; i++) {

cout<<n2*i<<endl;

}

}

//You run the loop to literally all numbers that would be infinite loop, so yeah just give num variable the value to which you want to multiply till.

Similar questions
Biology, 11 months ago