Skip to content

Commit

Permalink
Correct the documentation of step() 20240827
Browse files Browse the repository at this point in the history
As promised during the coding club.
  • Loading branch information
damianooldoni committed Aug 29, 2024
1 parent bf53f41 commit fd05510
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/20240827/20240827_challenges.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,9 @@ evenOdd <- function(n) {

## CHALLENGE 2

#' Function step() takes a positive integer:
#' 886328712442992
#' Function step() takes a positive integer, count up the number of even and
#' odd digits, and the total number of digits and return it as a number.
#'
#' Write down a positive integer:
#' 398473234
#'
#' Count up the number of even and odd digits, and the total number of digits:
#' 4 5 9
#'
#' String the digits of those three numbers together to make a new number:
#' 459
#'
#' Return it as a number.
#' @examples
#' step(398473234)
#' 459
Expand Down

0 comments on commit fd05510

Please sign in to comment.