Execute partially

Hello Coders!!
I am playing now.
I want to run a code by parts. If I click the Arrow Button, it runs the entire code. It shows then results…

I would like to execute three lines, then show some result.
Then I want to run again, and show some other result. And again and again.

Does anyone know how I can solve this?