Time taken per hour for stoppage of Car | C ++ implementation of the approach ; Function to return the time taken per hour for stoppage ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int numberOfMinutes ( int S , int S1 ) { int Min = 0 ; Min = ( ( S - S1 ) / floor ( S ) ) * 60 ; return Min ; } int main ( ) { int S = 30 , S1 = 10 ; cout << numberOfMinutes ( S , S1 ) << " ▁ min " ; return 0 ; }