/* Program: add2f.c This program reads in two floating pont numbers, adds them together, and prints out their sum. */ #include #include "simpio.h" #include "genlib.h" main() { double n1, n2, total ; printf("This program adds two numbers.\n") ; printf("1st number? ") ; n1 = GetReal() ; printf("2nd number? ") ; n2 = GetReal() ; total = n1 + n2 ; printf("The total is %f.\n", total) ; }