Computer Science, asked by rajdeepdash2006, 11 months ago

write a c++ program to convert 5 hrs 20 min into total minutes​

Answers

Answered by karnanmuthuvel
0

Answer:

Explanation:

1. The program takes number of hours and stores it.

2. Hours are converted into minutes by multiplying with 60.

3. Seconds are calculated by multiplying minutes with 60.

4. The result is printed.

5. Exit.

Answered by Anonymous
3

#include <bits/stdc++.h>

by using namespace std;

//Our required task

void convert(int hrs) {

long long int(mins, secs;

min = hrs, mins * 60;

sec = hrs, min = 320;

cout<<hours<<"hrs into mins as follows"<<mins<<endl<<hrs<<"hrs into sec"<<secs;

}

int main() {

int hrs = 5;

int mins = 20;

convert(minutes);

return 1;

}

Similar questions