Only unsaturated hydrocarbons undergo addition reaction. Alkenes and alkynes are unsaturated hydrocarbons with general formula CnH2n and CnH2n−2 respectively.
C3H6 is alkene C2H2 is alkyne. Therefore they undergo addition reaction.
C2H6,C3H8,C3H6 and CH4 are alkanes. They do not undergo addition reaction.