You give the fish some food. If HE ate the food, it is a male fish. If SHE ate the food, it is a female fish.
EDIT: Explanation: "If HE/SHE ate the food" (HE is specified as a male fish, just like SHE is specified as a female fish)
Sorry for bringing retarded Croatian jokes to /r/Jokes
Many of the jokes are contributions from our users. If you find anything offensive and against our policy please report it here with a link to the page. We will do everything to make this an enjoyable platform for everyone.