I'm looking for an effective method to simulate a program. Why I am needing this is because sometimes I can only have the program's description, code, and all I have left is pen and paper when I want to calculate the result at the end, or the n-th loop, or step n-th ..etc..
For example :
Declare @i int While @i < 1000 begin print @i set @i = @i + 1 end
needless to say, this is a very simple program, everyone can understand it within a glance, but what about more complicated ones?
I can make it with pen and paper, but it consumes alot of time, and I think maybe there will be some methods, which will make this problem a lot easier!