Question: HELP PLEASE I ' m suppose to print a list of integers and the factorial of one less than the number on the line beside
HELP PLEASE Im suppose to print a list of integers and the factorial of one less than the number on the line beside it but the code is wrong. SFT Workshop Learning Outcomes Recognize common bugs, Fix common bugs, Learn debugging techniques. Instructions The following program is supposed to print a list of integers and the factorial of one less than the number on the line beside it Unfortunately, some bugs have crept into the program. You should: Run the program and see how it works, Look for bug clues that were covered in the lectures, Use whatever debugging techniques you want to find the bugs, Fix the bugs Repeat steps above until all bugs are fixed. #define CRTSECURENOWARNINGS #include #define MAXFACTORIALS #define NUMFACTS struct FactorialResults int resultsMAXFACTORIALS; int numResults; ; int factorialconst int n return n n n factorialn : ; int reduceFactorialconst int n return n n; void computeFactorialsstruct FactorialResults results, int numFactorials int i; for i ; i numFactorials; i results.resultsi factoriali; results.numResults numFactorials; int mainvoid struct FactorialResults results ; int i; computeFactorialsresults NUMFACTS; for i ; i NUMFACTS; i results.resultsi reduceFactorialresultsresultsi; printf
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
