My assignment is to do the following:

Write a program that executes multiplication of two integers entered by the user , by
using ONLY the addition operation.
So, for example if the inputs are 3 and 4, the program will execute 3 times addition of
4: 4+4+4.

I have to do it using the "while" function. I understand the basic concept of the while function but I have no clue how to do this. Please help me understand it better.