Problems not solved at the end of Nth day | Function to find problems not solved at the end of Nth day ; Driver Code
function problemsLeft ( K , P , N ) { if ( K <= P ) return 0 ; else return ( K - P ) * N ; } let K , P , N ; K = 4 ; P = 1 ; N = 10 ; document . write ( problemsLeft ( K , P , N ) ) ;