Menu Close

Find the time, hours and minutes the train was delayed.

Binita was travelling from Chennai to Delhi in Rajdhani Express.  The train have arrived at the destination later than the estimated time.  So, Binita wants to know the total number of hours and minutes the train was delayed.

Can you help Binita in finding the exact hour and time Rajdhani Express was delay on the day of Binita’s journey?

Input: 
The only line of input representing total minutes.

Output: 
Print the Number of Hours and Minutes in a single line.
#include <stdio.h>
int main()
{
    int tot_mins,hrs,mins;
    scanf("%d",&tot_mins);
    hrs=tot_mins/60;
    mins=tot_mins%60;
    printf("%d Hours and %d Minutes",hrs,mins);
	return 0;
}

INPUT_1:
600

OUTPUT:
10 Hours and 0 Minutes


INPUT_2:
650

OUTPUT:
10 Hours and 50 Minutes


INPUT_3:
546

OUTPUT:
9 Hours and 6 Minutes


INPUT_4:
101

OUTPUT:
1 Hours and 41 Minutes


Explore

1. Quantum Mechanics relation with quantum computing

2. Unzipping Files using Python

3. An Algorithm which accepts n integer values and calculates the average and prints it.

4. How can Quantum Computing merge with Virtual Reality ? !

5. Blockchain and Cryptocurrency. And their relations with Virtual Reality !!


Morae Q!