Compare price to rice in c