Chef has A units of solid and B units of liquid. He combines them to create a mixture. What kind of mixture does Chef produce: a solution, a solid, or a liquid? A mixture is called a: 1) A solution if A>0 and B>0, 2) A solid if B=0, or 3) A liquid if A=0.

 Chef has A units of solid and B units of liquid. He combines them to create a mixture. What kind of mixture does Chef produce: a solution, a solid, or a liquid?
A mixture is called a:
1) A solution if A>0 and B>0,
2) A solid if B=0, or
3) A liquid if A=0.







OURSHOPKEEPER











#include <iostream>
using namespace std;

int main()
{
    int t;
    cin >> t;
    while (t--)
    {
        int ab;
        cin >> a;
        cin >> b;
        if (a > 0 && b > 0)
        {
            cout << "Solution" << endl;
        }
        else if (a > 0)
        {
            cout << "Solid" << endl;
        }
        else if(b > 0){
            cout << "Liquid" << endl;
        }
    }
}




    


Click on the above button to download the code.



Post a Comment

If you have furthur QUERIES please let us know

Previous Post Next Post