Number in the P number system (P < 10)
Problem
Write a recursive procedure that converts a number to any base 2 through 9.
Input data: the input to the program is the number N (N < 1024) - the number in the decimal number system and the number P (from 2 to 9 ) (numbers N and P are entered on different lines: first N, then P).
Output data: display one number - a number in P-ary number system.
Example:
Запрещенные операторы: for;while;until