Positive and negative numbers

Report a typo

Write the code for a Go program that reads an integer number and checks if it's a positive number, a negative number, or a zero.

In case the number is positive print "Positive!", and if is negative print "Negative!". In case the number is zero print "Zero!".

Sample Input 1:

1

Sample Output 1:

Positive!
Write a program in Go
package main

import "fmt"

func main() {
var number int
fmt.Scanf("%d", &number)

// Write your code here.
}
___

Create a free account to access the full topic