Complete the code to print "Positive" if the number is greater than zero.
if num [1] 0 { fmt.Println("Positive") }
The condition num > 0 checks if the number is positive.
Complete the else-if condition to check if the number is zero.
if num > 0 { fmt.Println("Positive") } else if num [1] 0 { fmt.Println("Zero") }
The condition num == 0 checks if the number is exactly zero.
Fix the error in the else-if condition to check if the number is negative.
if num > 0 { fmt.Println("Positive") } else if num [1] 0 { fmt.Println("Negative") }
The condition num < 0 correctly checks if the number is negative.
Fill both blanks to complete the else-if ladder that prints "Positive", "Zero", or "Negative".
if num [1] 0 { fmt.Println("Positive") } else if num [2] 0 { fmt.Println("Zero") } else { fmt.Println("Negative") }
The first condition checks if num > 0 (positive), the second checks if num == 0 (zero), else it's negative.
Fill all three blanks to complete the else-if ladder that prints the correct message based on num.
if num [1] 0 { fmt.Println("Positive") } else if num [2] 0 { fmt.Println("Zero") } else if num [3] 0 { fmt.Println("Negative") }
The conditions check if num > 0 (positive), num == 0 (zero), and num < 0 (negative).