Problems not solved at the end of Nth day | C ++ 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
#include <bits/stdc++.h> NEW_LINE using namespace std ; int problemsLeft ( int K , int P , int N ) { if ( K <= P ) return 0 ; else return ( K - P ) * N ; } int main ( ) { int K , P , N ; K = 4 ; P = 1 ; N = 10 ; cout << problemsLeft ( K , P , N ) ; return 0 ; }