From 08a24c947f4339b959b110a3cd30e85b6ed6abc5 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Fri, 10 Jun 2022 15:20:54 +0100 Subject: [PATCH] feat: correct the BuzZinga subject --- subjects/buzzinga/README.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) 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 :