Question: solve it with C language Exercise 1 - Numbers operations with recursive functions (3 marks) Exercise Objectives Identifying the base case(s) and recursive step used

Exercise 1 - Numbers operations with recursive functions (3 marks) Exercise Objectives Identifying the base case(s) and recursive step used to understand/write a recursive function Implementing and calling recursive function Problem Description Open replit.com IDE, create a new repl (project) and name it "Lab10ex1". Use this project to write and run a C program that performs the following: Declare the following functions as prototype and implement them after the main function o DigitsCount(), a recursive function that receives an integer number n, and returns the number of its digits. (Hint: You can use a static variable to store count] ReverseNum(), a recursive function that receives an integer number n, and returns its reverse value. (Hint: You can use a static variable to store the result of reversing) GCD(), a recursive function that receives two integer numbers n and n, and returns its reverse value. (Hint: Greatest common Divisor (GCD) or High Common Factor (HCF) of two or more integers, is the largest positive integer that divides each of the integers.] GCD or HCF of two numbers inc 26-2*22*3 30-2 x 35 Emel = 2x3 SeriesSum), this recursive function receives an integer number and returns the summation of the first n terms of the following series (recursively): 1 1 1 1-+-+ (Hint: within this function, use another static variable to keep flip from negative even terms) to positive (odd terms)] In the main function declare two positive integers: X and y, and prompt the user to read both of them, then call the functions declared above as follows: Find the number of digits for x Test if x is palindrome number or no by comparing x with its reverse (you need to call ReverseNum() for x] Find the GCDIX, Y), by calling the specified function Call SeriesSum() the fory terms Organize the output to appear as shown in the sample output below Download your project as zip file and keep it within your file system (Desktop for example) Upload the project to the eLearning platform Sample Output Please enter the value for x 4224 Please enter the value for y 12 The number of digits for 4224 is 4 The reverse of 4224 is 4224 4224 is a Palindrome number GCD(4224, 12) is 12 Summation of the first 12 terms of the series = 0.65
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
