I've noticed that in order for us to understand any program is by dry running it using a pen and paper and that is much difficult. Please give me a tips on how to dry run a program. Is there a software that will dry run a program and show us how it runs? I want to have that software.
for i=1
Armstrong=3;
num=15;
Armstrong=3*3*3=27
result=0+27=27;
for loop condition check: num is not equal to zero loop will run again
for i=2
Armstrong=5;
num=1;
Armstrong=5*5*5=125
result=27+125=152;
for loop condition: num is not equal to zero loop will run again
for i=3
Armstrong=1;
num=0;
Armstrong=1*1*1=1;
result=152+1=153;
for loop condition: num is EQUAL TO ZERO loop will run again
Loop will break and ifelse condition will be checked as or result=153 and check=153
I don't think anything like that exists. Debuggers are as close as it gets, and it's what everyone uses when trying to understand the flow of a program.