Skip to content

Opening book details…

About this document

2011 F Purple BaseIncrement by Ric Rad is a document available to read on EtoBox.

The document describes a programming problem to write a program that takes as input a number (n) in a given base (b) and outputs the next number in that same base. The input will provide b and n separated by a space on each line, with b ranging from 2-9 and n being a valid number in that base with at most 8 digits. The program should output n+1 in the same base b with no leading zeros. Sample inputs and expected outputs are provided.

Author
Ric Rad
Language
EN