What is the exact difference between static tasks/functions and automatic tasks/functions ? please explain with a clear example

In reply to dave_59:

Thank you for your kind reply Dave. but I executed that code with the following outputs.

1)I got the following results with using automatic keyword
0 factorial=1
1 factorial=1
2 factorial=2
3 factorial=6
4 factorial=24
5 factorial=120
6 factorial=720
7 factorial=5040

2)Output without automatic keyword I got
0 factorial=1
1 factorial=1
2 factorial=1
3 factorial=1
4 factorial=1
5 factorial=1
6 factorial=1
7 factorial=1

according to me this is static behavior and not automatic. Please rectify me in case my understanding is incorrect.