c c compile program by typing gfortran -o sum sum.f c execute program by typing sum c c implicit none: no rules on variable names are assumed by default implicit none c defining the variables to be integers integer a,b,c print *,'hello' print *,'enter two integers to add together separated by a space' c read from the default terminal window read *,a,b c = a + b print *,'values of a, b, c are:', a,b,c stop c terminate the program end