valency of carbon in CH4 , C2H6 , C2H4 , C2H2 ???
The valency of any element never changes. In CH4 and C2H6, carbon forms single bonds. In C2H4, carbon forms 1 double bond ( it shares 2 electrons). In C2H2, carbon forms 1 triple bond ( it shares 3 electrons).
You will study this in Chapter 4 in class X. I hope this cleared your doubts.