<prompt> Kutokana na idadi kamili num, kurudi kamba ya msingi wake 7 uwakilishi. Katika C , jinsi gani suluhisho kazi?  <response>: Heres one possible solution in C that converts an input integer num into its base-7 representation using recursion:include using namespace std;class Solution public: string convertToBase7int num if num 0 return - convertToBase7-num; else if num 7 return to_stringnum; else return convertToBase7num 7 to_stringnum 7; ;The function convertToBase7 takes an integer num as input and returns a string representing its base-7 representation. If num is negative, we convert its absolute value and prepend a - sign to the output string.If num is less than 7, we simply convert it to a string using the to_string function and return it.Otherwise, we call convertToBase7 recursively with the integer quotient of dividing num by 7, and append the string representation of the remainder of this division operation to the end of the result.Note that the recursion terminates when num is less than 7, so the function will eventually terminate and return the correct base-7 representation of num. 