Solution to the problem number 12372 of UVA - 12372.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int cases = 1,a,b,c,number=1;
    cin>>cases;
    while(cases+1!=number)
    {
      cin>>a>>b>>c;
      if(a<=20 && b<=20 && c<=20)
          cout<<"Case "<< number <<": "<<"good\n";
      else
          cout<<"Case "<< number <<": "<<"bad\n";
          number++;
    }
return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!