How can I work out whether a hydrocarbon is an alkene or an alkane from its molecular formula?

GCSE