Answer to Question #264891 in C++ for Rille

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




1
Expert's answer
2021-11-12T07:16:22-0500
#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS