If I have a program like the one shown below and i execute the program 5 times. Each time I execute the program, it will print a number 'x' to the screen. Is there any code I could write to add up the numbers which are printed to the screen each time the program is executed.
Program Sum
Implicit None
Integer :: x,n
print*,type in a value for n
read*,n
x = n + 1
print*,x
End Program Sum
Program Sum
Implicit None
Integer :: x,n
print*,type in a value for n
read*,n
x = n + 1
print*,x
End Program Sum