Question #264891

16. Make a program that will input minutes, convert it into hour. Display the equivalent hour/s . Your program will be terminated if you input zero in the hour.



Ex. Minutes = 120



Equivalent Hour is = 2




Expert's answer

#include<iostream>
using namespace std;
int main(){
	cout<<"Enter minutes:\n";
	int minutes;
	cin>>minutes;
	cout<<"Equivalent Hour is =  "<<minutes / 60<<endl;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS