// This program takes two command line arguments, // assumed to be numbers, and displays their sum. #include #include // Needed for atof using namespace std; int main(int argc, char *argv[]) { double total = 0; if (argc > 1) { for (int count = 1; count < argc; count++) total += atof(argv[count]); cout << total << endl; } return 0; }