code.cpp 228 B

12345678
  1. /* Write a function that takes two integers
  2. * (hours, minutes) and converts them into seconds.
  3. */
  4. int convert(int hours, int minutes) {
  5. int convert = hours*60*60 + minutes*60;
  6. // hey look its recursive
  7. return convert;
  8. }