Browse Source

Corecting CountStar Subject

fixDevirged
zainabdnaya 2 years ago committed by zainab Dnaya
parent
commit
f4b184fd3b
  1. 10
      subjects/countstars/README.md

10
subjects/countstars/README.md

@ -1,7 +1,7 @@
## CountStars ## CountStars
### Instructions ### Instructions
Write a function named `CountStar` that makes u fall asleep by counting stars, it takes an integer in the parameter Write a function named `CountStar` that makes you fall asleep by counting stars, it takes an integer in the parameter
- If the number is negative or equal to 0, return "`No star`" - If the number is negative or equal to 0, return "`No star`"
- No need to manage overflow. - No need to manage overflow.
@ -24,8 +24,8 @@ func main() {
``` ```
```console ```console
$ go run . | cat -e $ go run .
1 star...2 star...3 star...4 star...5$ 1 star...2 stars...3 stars...4 stars...5 stars...
1 star...2 star...3 star...4$ 1 star...2 stars...3 stars...4 stars...
No star$ No star
``` ```

Loading…
Cancel
Save