/**************************************************************** CS167 C Programming, Spring 1998 Lab 2. Modify an existing program Here, below is the "addtion" progrom from page 28 of the textbook. Follow these steps to complete the assignment. These steps are essentially the same as the last lab assignment. 1. Edit the source code frm this message exactly as in your first assignemnt. 2. Use the editor to modify the program to read two integers from the keyboard and to print the two results: a) of dividing the two numbers and b) the remainder of the division. For example: 72 divided by 15 gives 4, remainder 12 You can use both integer division (the / operator) and the modulus, or remainder operator % to do this. 3. Compile and run the program several times to test its results. 4. Run the program once more with the example input (72 and 15) but with redirected output to a file, and insert the contents of the output file into a copy of the source code file. 5. Print the file with the source code and output and hand it to me (RTH). 6. Mail the same file to our grader (login hhuang). Points to note: o You may get compilation errors and/or warnings. Pay attention to these messages because you program may not run correctly, or at all because of these errors. o Don't forget to put your name in the file comment, and change the comment to reflect the purpose of the new program o Change the user prompts (the text strings printed by the program before asking for input) to suit the new application. o Make sure your output is easily understood. *******************************************************************/ /****************************************************************** * This program reads the two numbers and prints their sum * * written by Deitel and Deitel, modified by Roger Hartley * ******************************************************************/ #include int main() { int integer1, integer2, sum; printf("Enter the first integer\n"); scanf("%d", &integer1); printf("Enter the second integer\n"); scanf("%d", &integer2); sum = integer1 + integer2; printf("Sum is %d\n", sum); return 0; }