The purpose of the program I am trying to create is to convert the inputted amount of minutes into hours and minutes.
For example:
90 minutes = 1 hour and 30 minutes
Here is where I am so far:
A bit simple, but the formula is what I am stuck on, mainly for finding out the minutes. Any ideas?
For example:
90 minutes = 1 hour and 30 minutes
Here is where I am so far:
- Code:
#include <iostream.h>
#include <stdlib.h>
int main()
{
float m, sm;
int h;
cout << "Minutes: ";
cin >> m;
h = (m \ 60)
sm =
A bit simple, but the formula is what I am stuck on, mainly for finding out the minutes. Any ideas?