Update practica2.cpp