You want to use the do-while loop. You do your operations and such, ask the questions etc. If they answer yes to the question - if these are the two numbers they would like to perform the mathematical operation with - You do the mathematical operation. If they answer no, you want to loop around everything so it starts over and they can give you two new numbers.
There are 3 kinds of loops. For-loops, while loops and do-while loops.
I would recommend looking up info about each of them on the googles, that's the best way to learn, and there is tons of tutorials on this website included. I also love watching youtube videos, I'll recommend two playlists for you -
https://www.youtube.com/playlist?list=PLAE85DE8440AA6B83
https://www.youtube.com/playlist?list=PL2DD6A625AD033D36
There's videos of pretty much everything here, including all the loops.
Get started and try it out yourself, if it gets sticky please post your updated code and we will help out :) Goodluck!
Edit: Don't forget that you will also need an if-statement to ask if they want to do the mathematical operation, watch the videos on that too :D