3 si 4 va rog mult faceti cat stiti

exercițiul 4 este mai greu dar exercițiul 3 l-am facut!Baftă!