fork download
  1. program addnumbers
  2. real::a,b,res
  3. print *,'Enter the number:'
  4. read *,a
  5. print *,'Enter the second number:'
  6. read *,b
  7. res=a+b
  8. print *,"the total number is:",res
  9. end program
Success #stdin #stdout 0s 5316KB
stdin
7.90
42
stdout
 Enter the number:
 Enter the second number:
 the total number is:   49.9000015