Browse Source

remove repetitions

pull/1377/head
MSilva95 2 years ago committed by zainab Dnaya
parent
commit
d3e7be78d1
  1. 11
      subjects/buzzinga/README.md

11
subjects/buzzinga/README.md

@ -3,11 +3,10 @@
### Instructions
Write a function called `BuzZinga()` that takes a number as an argument, then loops over it and does the following for each iteration:
- If the number is negative, print * followed by a newline.
- If the number is divisible by 3, print Buz followed by a newline
- If the number is divisible by 5, print Zinga followed by a newline
- If the number is divisible by 3 and 5, print BuzZinga followed by a newline
- If the number is not divisible by 3 or 5, print * followed by a newline.
- If the number is divisible by 3, print `Buz` followed by a newline
- If the number is divisible by 5, print `Zinga` followed by a newline
- If the number is divisible by 3 and 5, print `BuzZinga` followed by a newline
- If the number is negative or not divisible by 3 or 5, print `*` followed by a newline.
- if the number is 0, print BuzZinga followed by a newline.
### Expected function
@ -67,4 +66,4 @@ Buz$
Zinga$
----------
BuzZinga$
```
```

Loading…
Cancel
Save