Count Number of Digits
Explanation: Include the Standard I/O Library: Main Function: Variable Declaration: User Input: Handling the Zero Case: Handling Negative Numbers: Counting Digits: Display the Result: Return Statement: OUTPUT Enter an integer:…