about | help | code help+videos | done | prefs |
Write a method that counts down, in words, from 'num' down to 1. As a precondition you may assume that 'num' is an integer between 1 and 9 inclusive. This can be done very simply using switch case with no loops! count(7) → "seven six five four three two one" count(5) → "five four three two one" count(4) → "four three two one" ...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: 220
Copyright Nick Parlante 2017 - privacy