C++ Program to Convert Minute to Hour

Write C++ Program to Convert Minute to Hour

// CPP Program to Convert Minute to Hour

#include <iostream>

using namespace std;

int main()
{
	int min;

	cout << "Enter Minutes :--> ";
	cin >> min;

	cout << "Hour : Minute :--> " << min/60 << " : " << min%60;

	return 0;
}

Output:

Enter Minutes :--> 75
Hour : Minute :--> 1 : 15

≪ Previous | Next ≫