Why buy fish if you do not know what to feed them! Always do research on what they need before making a purchase!
To answer your question you can't feed floating food to them. Here are some suitable food to feed them.
Bloodworm, prawn, spirileena, hikari pellets, brine, and krill.
Please do your research before buying your fish!!