Program to find minimum number of lectures to attend to maintain 75 % | Method to compute minimum lecture ; Formula to compute ; Driver Code
function minimumLectures ( m , n ) { let ans = 0 ; if ( n < Math . ceil ( 0.75 * m ) ) ans = Math . ceil ( ( ( 0.75 * m ) - n ) / 0.25 ) ; else ans = 0 ; return ans ; } let M = 9 , N = 1 ; document . write ( minimumLectures ( M , N ) ) ;