This assignment must be submitted to the Moodle submission page for Homework E1 by 11:00 PM on Tuesday, 30 August.
Download, compile,and execute the following program, based on Assignment 1 of Fall 2009 on either your home computer or a lab computer at your college.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
int lower, upper, n ;
printf("Lower integer: \n");
scanf("%d", &lower);
printf("Upper integer: \n");
scanf("%d", &upper);
printf("\n n (n-1)/n\n") ;
for(n=lower; n<=upper; n++) {
printf("%8d %8.5f\n", n, (float)(n-1)/n) ;
}
return (EXIT_SUCCESS);
}
Add some printf statements to the beginning of the program
to print the following information: