remove repetitions

This commit is contained in:
MSilva95 2022-07-26 15:04:19 +01:00 committed by zainab Dnaya
parent e0dfa67526
commit d3e7be78d1
1 changed files with 5 additions and 6 deletions

View File

@ -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$
```
```