corrected

This commit is contained in:
zainabdnaya 2022-07-19 10:20:01 +01:00 committed by zainab Dnaya
parent 7446208834
commit 54585ff591
1 changed files with 8 additions and 7 deletions

View File

@ -1,13 +1,14 @@
## isnegative
## StrisNegative
Write a function named `IsNegative()` that defines if a number (You should check if it's a number) is negative or positive.
- Your function print `P` if the number is positive
- Your function print `F` if the number is negative
- For the number is zero print `0`.
- If it's not a number print newline.
- Your program should always print `('\n') `at the end of the output.
Write a function named `StrisNegative()`hat defines whether a number is negative or positive.
- Your function prints `P` if the number is positive
- Your function prints `F` if the number is negative
- If the number is zero, print `0`.
- If it's not a number, print `('\n') `.
- Your program should always print `('\n') ` at the end of the output.
### Expected function
```go
func StrisNegative(str string) {