Question #197385

Write a function that takes an integer minutes and converts it to seconds.

Examples

convert(5) ➞ 300

convert(3) ➞ 180

convert(2) ➞ 120



Expert's answer

int convert(int min)
{
  return min*60;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS