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
#include<iostream>
using namespace std;
int main(){
cout<<"Enter minutes:\n";
int minutes;
cin>>minutes;
cout<<"Equivalent Hour is = "<<minutes / 60<<endl;
}
Comments
Leave a comment