Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 316 Bytes

16-convert-to-decimal.md

File metadata and controls

17 lines (9 loc) · 316 Bytes

Convert to Decimal

Write a program to convert from base n to decimal (base 10).

Request the value of n.

Request the number value (integer).

Convert to base 10, and output the result.

Things to consider

Make sure the base is an integer between 2 and INFINITY.

Variants

  1. Handle floating point values.