From 118766b2d7e7e139da04608aeb1a1eafe64f8ddd Mon Sep 17 00:00:00 2001 From: jrosendo Date: Mon, 21 Nov 2022 15:02:35 +0000 Subject: [PATCH] docs(multorsum): ran prettier format --- subjects/multorsum/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subjects/multorsum/README.md b/subjects/multorsum/README.md index f125c9912..6e68684f5 100644 --- a/subjects/multorsum/README.md +++ b/subjects/multorsum/README.md @@ -2,12 +2,12 @@ ### Instructions -Write a function that receives a slice of `int` and an `int` representing the initial value as arguments. +Write a function that receives a slice of `int` and an `int` representing the initial value as arguments. The function should go through the slice and for each `int` check the following restrictions: -- If the `int` is odd, multiply it by the init value. Return the accumulated value after traversing the entire slice. -- If the `int` is even, add it to the init value. Return the accumulated value after traversing the entire slice. +- If the `int` is odd, multiply it by the init value. Return the accumulated value after traversing the entire slice. +- If the `int` is even, add it to the init value. Return the accumulated value after traversing the entire slice. - If the slice is empty return `0`. ### Expected function