Browse Source

feat: correct the BuzZinga subject

1122-buz-zinga
zainabdnaya 2 years ago
parent
commit
8702c4b76b
  1. 23
      subjects/buzzinga/README.md

23
subjects/buzzinga/README.md

@ -1,14 +1,17 @@
# buzzinga
### 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 ('`\n`')
- If the number is divisible by 5, print `Zinga` followed by ('`\n`')
- If the number is divisible by 3 and 5, print `BuzZinga` followed by ('`\n`')
- If the number is not divisible by 3 or 5, print `*` followed by ('`\n`')
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.
### Expected function
```go
func buzZinga(number int) {
func BuzZinga(number int) {
}
```
@ -16,9 +19,13 @@ func buzZinga(number int) {
```go
package main
import (
"fmt"
"piscine"
)
func main() {
n := int32(15)
buzZinga(n)
fmt.Println(piscine.BuzZinga(15))
}
```
And its output :

Loading…
Cancel
Save