While writing IUPAC names of alkenes and alkynes following rules are to be followed in addition to rules for alkanes.
i. The longest continuous chain must include carbon-carbon multiple bond. Thus, the longest continuous chains in 1 and II contain four and six carbons, respectively.

ii. Numbering of this chain must be done such that carbon-carbon multiple bond has the lowest possible locant number.

iii. The ending ‘ane’ of alkane is replaced by ‘ene’ for an alkene and ‘yne’ for an alkyne.
iv. Position of carbon atom from which multiple bond starts is indicated by smaller locant number of two multiple bonded carbons before the ending ‘ene’ or ‘yne’.
e.g.

v. If the multiple bond is equidistant from both the ends of a selected chain, then carbon atoms are numbered from that end, which is nearer to first branching.
e.g.

vi. If the parent chain contains two double bonds or two triple bonds, then it is named as diene or diyne. In all these cases ‘a’ of ‘ane’ (alkane) is retained.

vii. If the parent chain contains both double and triple bond, then carbon atoms are numbered from that end where multiple bond is nearer. Such systems are named by putting ‘en’ ending first followed by ‘yne’. The number indicating the location of multiple bond is placed before the name.
e.g.

viii. If there is a tie between a double bond and a triple bond, the double bond gets the lower number.
