Am atasat 2 exercitii
Va rog sa.mi raspundeti

rezolvarea mea..........
sper sa intelegi si rationamentul........