checkGreatestFactor
Error Debugging checkGreatestFactor Problem Statement You are required to fix all logical errors in the given Code. You can Compile & Run to check the compilation/execution status of the program. You can use printf to debug your code. The submitted code should be logically/syntactically correct and pass all testcases. Do not write the main() function as it is not required. Code Approach For this question, you will need to correct the given implementation. We do not expect you to modify the approach or incorporate any additional library methods The function checkGreatestFactor(int num) accepts an integer num as an input and is supposed to return the highest factor that is less than num. It uses another function calculateFactor(int inputNumber) for calculating the factors of a number. The function checkGreatestFactor looks fine but gives a compilation error. Your task is to fix the program so that it passes...