urgent orice exercitiu

Explicație pas cu pas:
Exercițiul 2.
Sper ca te am ajutat