##### Online Fortran Compiler

program sum REAL X,Y,Z X = 25 Y= 40 Z = X + Y PRINT *,"sum of x + y = ", Z end program sum

Output Results

sum of x + y = 65.0000000

program sum REAL X,Y,Z X = 25 Y= 40 Z = X + Y PRINT *,"sum of x + y = ", Z end program sum

Output Results

sum of x + y = 65.0000000