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
using System ; class GFG { static int numberOfMinutes ( int S , int S1 ) { int Min = 0 ; Min = ( int ) ( ( ( S - S1 ) / Math . Floor ( ( double ) S ) ) * 60 ) ; return Min ; } public static void Main ( ) { int S = 30 , S1 = 10 ; Console . WriteLine ( numberOfMinutes ( S , S1 ) + " ▁ min " ) ; } }