Browse Source

buzzinga

1122-buz-zinga
zainabdnaya 2 years ago
parent
commit
a9e52165fa
  1. 12
      subjects/buzzinga/README.md

12
subjects/buzzinga/README.md

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