i want someone to solve this 1

I want to write the same codes that in the picture no other codes .

make sure that the result is the same in the picture and the codes are simple .