// file: lecture_07/example.cc // // local include files // #include "example.h" // method: main // // main program starts here // int main(int argc, char** argv) { // grab the command line arguments // long i = atoi(argv[1]); long j = atoi(argv[2]); long k = atoi(argv[3]); long sum = 0; for (long l = i; l < j; l += k) { sum += l; fprintf(stdout, "%f\n", (float)sum); } // exit gracefully // return(0); }