Put a for loop around the code you want to repeat:
Code:
cin<num_conversions;
for (int i=0; i<num_conversions; i++)
{
  // the code you want to repeat
}