Please Help Modify Program Figure 26 Exam1 Exam2 Ask User Enter Two Numbersfind Result F Q43857966
Please help with this.
Modify the program Figure 2.6 (exam1/exam2). Ask the user to enter two numbersFind the result when the first number is divided by the secondAlso find the remainder when the first number is divided by the secondIn other words, the program used to do this:68 85score = 81Now it should do this 22 2Divide = 11 Remainder = 0If you run it again:11 2Divide = 5 Remainder = 1If you run it again:20 16Divide = 1 Remainder = 4Use integer arithmetic only. NO DECIMAL POINTS.
This is my code
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
const int bonus = 10;
int exam1;
int exam2;
int score;
scanf(“%d%d”, &exam1, &exam2);
score = (exam1 + exam2) / 2 + bonus;
printf(“score – %dn”, score);
return (0);
}
Expert Answer
Answer to Please help with this. Modify the program Figure 2.6 (exam1/exam2). Ask the user to enter two numbers Find the result w…
OR