Problems not solved at the end of Nth day | Java program to find problems not solved at the end of Nth day ; Function to find problems not solved at the end of Nth day ; Driver Code
class Gfg { public static int problemsLeft ( int K , int P , int N ) { if ( K <= P ) return 0 ; else return ( ( K - P ) * N ) ; } public static void main ( String args [ ] ) { int K , P , N ; K = 4 ; P = 1 ; N = 10 ; System . out . println ( problemsLeft ( K , P , N ) ) ; } }