Computer Science, asked by morrismohan07pkt, 8 months ago

Write a C++ program to input time in minutes

Answers

Answered by varshiniHY
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
Math, 4 months ago