about | help | code help+videos | done | prefs |
centsToDollars
Given an amount of pennies, return the value as dollars and cents. Do not worry if there are no trailing zeros (i.e. 2.1 for $2.10) centsToDollars(37) → 0.37 centsToDollars(168) → 1.68 centsToDollars(10) → 0.1 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 6
Copyright Nick Parlante 2017 - privacy