Write a C++ program to input time in minutes
Answers
Answered by
1
Explanation:
The program output is shown below.
#include<iostream>
float hrs, min, sec = 0;
cout << "Enter hours : ";
cin >> hrs;
min = hrs * 60;
sec = min * 60;
cout << "\n" << hrs << " hours = " << min << " minutes = " << sec << " seconds";
return 0;
Similar questions