Create a recursive function in C++ called “convertToBinary” thatwill take a decimal number (can assume short int) and return astring of binary digits. Since it is short int, the string will beof size 16 – assume the number is positive. Your function will padthe most significant bits with zeros for smaller integers. Have themain function input the numbers 16, 128 and 3215 (can be fromstandard input or hardcoded in the “convertToBinary” function call)– you can assume the input is not negative for now. Your functionhas to pad for 16 bits.
Your program will take for input the numbers 16, 128 and
PayPal Gateway not configured
PayPal Gateway not configured