Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Find AND FIX 5 errors in the code below. cross it If something is missing, add it. if something shouldn't be there, to be changed,
Find AND FIX 5 errors in the code below. cross it If something is missing, add it. if something shouldn't be there, to be changed, cross it out and write the correct code. There are a total of 6. They could be credit wil be given for every error over 5 that is identified and compile-time, run-time or logic errors. 1 point extra fixed. #include stdio.h> void printAddition(int num1, int num2) int main() printf("Enter a number: ); int x; scanf("Xd",&x) printf("Here are the e-12 addition facts for the number san", x); int sum printAddition(4, x); void printAddition(int, int) printf("xdd Xdn, numl, num2, numinum2); Enter a number: 7 Here are the e-12 addition facts for the number 7 1+7-8 2+7 9 +7 10 4+7 11 5+7=12 6+7 13 9+7=16 10+7 17 11 7 18 12+7 19
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started