How do you use the feature like step into, step out

Thread Starter

King2

Joined Jul 17, 2022
163
What happens if you hit step into once and then start hitting step over?
When I hit 'step in' once, the cursor moves to line number 5, and hits "step over", the cursor moves to line number 6 and hits "step over" again, the cursor moves to line number 8. and hits "step over" again, the cursor moves to line number 6 and hits "step over" again, the cursor moves to line number 8. I set to 1

I have observed In the whole process the cursor moves between line number 8 to 6 and the value of the variable i changes from 0 to 5 .
 

WBahn

Joined Mar 31, 2012
32,895
You're better off writing your own code so that you know what it is supposed to do compared to what it actually does.
 

Thread Starter

King2

Joined Jul 17, 2022
163
You're better off writing your own code so that you know what it is supposed to do compared to what it actually does.
I don't have a good use case for writing code. I can try to write my own code. But I want to write such code so that it is easy for me to debug the code and I can understand how to debug the code.

Can you suggest a good use case so that I can write a program for it?
 

WBahn

Joined Mar 31, 2012
32,895
Make up something! Write a program that prints out the squares of all the numbers from 1 to 9. Or that prints out a multiplication table up to 20x20.

Do a search for introductory programming problems and you will find sites with literally hundreds of problems. One such site is Project Euler.
 

Thread Starter

King2

Joined Jul 17, 2022
163
Make up something! Write a program that prints out the squares of all the numbers from 1 to 9.
I have written program that prints out the squares of all the numbers from 0 to 9

I am going to examine this in a bit detail. I don't understand the how memory window is working shown in the right side

Screenshot from 2022-08-15 09-47-13.png
 
Top