|
|
|
@ -3,10 +3,10 @@
|
|
|
|
|
### Instructions |
|
|
|
|
Write a function named `BuzZinga()` that takes a number as an argument and prints the following: |
|
|
|
|
|
|
|
|
|
If the number is divisible by 3, print Buz followed by newline. |
|
|
|
|
If the number is divisible by 5, print Zinga followed by newline. |
|
|
|
|
If the number is divisible by 3 and 5, print BuzZinga followed by newline. |
|
|
|
|
If the number is not divisible by 3 or 5, print * followed by 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. |
|
|
|
|
|
|
|
|
|
### Expected function |
|
|
|
|
|
|
|
|
@ -16,6 +16,9 @@ func BuzZinga(number int) {
|
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
### Usage |
|
|
|
|
|
|
|
|
|
Here is a possible program to test your function: |
|
|
|
|
|
|
|
|
|
```go |
|
|
|
|
package main |
|
|
|
|
|
|
|
|
@ -47,4 +50,5 @@ Buz$
|
|
|
|
|
*$ |
|
|
|
|
*$ |
|
|
|
|
BuzZinga$ |
|
|
|
|
|
|
|
|
|
``` |