FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 77   



Following program shows you how to convert hours to minutes.
In this program we get hours from user once we get those we need to multiply with 60 so that we get in minutes

#include <iostream>
#include <math.h>

int main() {
    int hours;
    std::cout << "Please enter hours:";
    std::cin >> hours;
    int minutes = hours * 60;
    std::cout << minutes << " Minutes";
}

Output:

Please enter hours: 15
900 Minutes



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News