I have a task for college and I have to write a code for an intersection of sets in C. I have written the code, and when I try to test the program with 9 previously defined tests, I pass 8 out of 9 of them. I get an error in one of the tests, where my condition actually coincide with previous condition. I have no idea how to fix this so I'm here asking y'all how can i fix this. Here is the code in pastebin, so you could see and try to help me.

Note: We didn't learn about arrays or lists, so I am not allowed to use that, and loops too...

"Unesite brojeve a, b, c, d" - means "Insert numbers a,b,c,d"
"Rezultantni interval je" - means "Final interval is"
"Skupovi se ne sijeku" - means "Sets do not intersect"

I hope that you can help me
Here is the code: https://pastebin.com/hBTxEQEv