diff --git a/subjects/buzzinga/README.md b/subjects/buzzinga/README.md index c95bdc1e..f1c212c5 100644 --- a/subjects/buzzinga/README.md +++ b/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 :