Browse Source

Corecting CountStar Subject

1147-count-stars
zainabdnaya 2 years ago
parent
commit
1327b88dcc
  1. 10
      subjects/countstars/README.md

10
subjects/countstars/README.md

@ -1,7 +1,7 @@
## CountStars
### 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`"
- No need to manage overflow.
@ -24,8 +24,8 @@ func main() {
```
```console
$ go run . | cat -e
1 star...2 star...3 star...4 star...5$
1 star...2 star...3 star...4$
No star$
$ go run .
1 star...2 stars...3 stars...4 stars...5 stars...
1 star...2 stars...3 stars...4 stars...
No star
```

Loading…
Cancel
Save