#include using namespace std; int howManyGames(int p, int d, int m, int s) { // Return the number of games you can buy int count=0; int p1=p; while(s>=0 && s>=m && p>=m) { p1=p-d; // cout<<"p1 = "<