wes d2a2ba9e15 first commit 4 tahun lalu
..
README.md d2a2ba9e15 first commit 4 tahun lalu
code.cpp d2a2ba9e15 first commit 4 tahun lalu
unitTest.cpp d2a2ba9e15 first commit 4 tahun lalu

README.md

Convert Hours and Minutes into Seconds

by Matt tags: language_fundamentals, math

Summary

Write a function that takes two integers (hours, minutes) and converts them into seconds. Examples convert(1, 3) ➞ 3780 convert(2, 0) ➞ 7200 convert(0, 0) ➞ 0 Notes Don't forget to return the result. If you get stuck on a challenge, find help in the Resources tab. If you're really stuck, unlock solutions in the Solutions tab.

Instructions

Write a function that takes two integers (hours, minutes) and converts them into seconds.

Examples

convert(1, 3) ➞ 3780

convert(2, 0) ➞ 7200

convert(0, 0) ➞ 0

Notes

  • Don't forget to return the result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.