Sofdor Ali found interest in mathematics very early in his life. And now, he wants to spread this interest to every young mind. But the way some of the Bangladeshi schools asks students to memorize the multiplication table disappoints him. “Multiplication is just repeated addition”, Sofdor says to himself and grieves as many young students do not even know this simple fact.
First of all, Input will not contain only 3 integers it will contain. It will contain T number of input.
To solve this problem you will first need to get the value of T then you can use while loop to get T number of input.
A sample code.
int t;
scanf("%d", &t);
while(t--){
//here you need to use scanf to take value of A and B
//then calculate the value and print it using printf
}