Qtr No. 213, New Town Yehlanka Indore 454775
What is the output of the following code snippet?
//Assume all necessary imports are done
func main() {
balance := 1000
expense := 200
if balance = balance - expense; balance >= 1000 {
fmt.Println("Option1")
} else if balance = balance + expense; balance < 1500 {
fmt.Println("Option2")
}
else if balance = balance / expense; balance == 5 {
fmt.Println("Option3")
} else {
fmt.Println("Option4")
}
}
Option4
Option2
Option3
Syntax Error: else in new line
To get all Infosys Certified Go Programmer Exam questions Join Group https://bit.ly/infy_premium_group
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in