#include using namespace std; int howManyGames(int p, int d, int m, int s) { // Return the number of games you can buy int a[11]={20,17,14,11,8,6,6,6,6,6,6}; int sum=0,i; for(i=0;i> p >> d >> m >> s; int answer = howManyGames(p, d, m, s); cout << answer << endl; return 0; }