You’re given four numbers a, b, c, d. You have to determine if you can make a rectangle of such lengthes.
QUICK EXPLANATION
Do what the problem asks you to do.
EXPLANATION:
In other words you have to check if two smallest and two largest numbers among this four are same. To do this you can sort all four numbers in whatever way you like and check that first two and last two numbers are both same. Example of solution:
Dont use void main. Its not allowed anymore I believe. Use int main().
If you are serious about competitive programming, consider switching to c++. Its much more powerful.
You dont have to print things like “enter the values” etc. Read output specifications of a problem carefully. Only print according to the given format. Like “yes” and “no” had to be uppercase.
It can be a square. Nowhere in the problem was written otherwise.
There are several beginner’s guide you can find by some googling. Read them