Program Arithmetic !------------------------------------------------------------------------------ ! Chris Harper CMSC 215 January 24, 2008 ! Assignment #1 ! ! Program to add two real numbers. Variables used are: ! X, Y : the two real numbers ! Sum : the sum of X and Y ! ! Output: X, Y, and Sum !------------------------------------------------------------------------------ IMPLICIT NONE Real :: X, Y, Sum X = 3.14 Y = 2.057 Sum = X + Y Print *, "Sum of", X, " and", Y, " is", Sum End program Arithmetic