(i) Formation of double bond in C2H4 (Ethene)
In ethene, each carbon atom undergoes sp2 hybridisation. Each carbon atom forms three sp2 hybrid orbitals.
• One sp2 orbital of each carbon overlaps with an sp2 orbital of the other carbon to form a σ bond.
• The unhybridised p-orbitals of the two carbon atoms overlap sideways to form a π bond.
Thus, the C=C double bond consists of one σ bond and one π bond.
Diagram showing formation of double bond:

(ii) Formation of triple bond in C2H2 (Ethyne)
In ethyne, each carbon atom undergoes sp hybridisation. Each carbon atom forms two sp hybrid orbitals.
• One sp orbital of each carbon overlaps axially to form a σ bond.
• The two unhybridised p-orbitals on each carbon overlap sideways to form two π bonds.
Thus, the C≡C triple bond consists of one σ bond and two π bonds.
Diagram showing formation of triple bond:


Conclusion:
A double bond consists of one σ and one π bond, while a triple bond consists of one σ and two π bonds between the carbon atoms.