ebosetalee/20-days-challenge

2 - Convert a number to base n

Closed this issue · 0 comments

Write a program to convert a number N from base 10 to base n.

  1. Generate a random number n.
  2. Generate a random integer N in base 10.
  3. Convert the integer N to base n, and output the result.

Things to consider

  1. Make sure the value of n is a positive integer between 2 and 16 (n should not be 10)
  2. Make sure that N is a positive integer less than INFINITY