Qtr No. 213, New Town Yehlanka
Indore 454775, India
What will be the output when the below-mentioned code snippet?
package main
import "fmt"
func main() {
num1:=25;
for ;; { //-----------------Line 1
if(num1==30){
break;
}
fmt.Printf("%d ",num1);
num1++;
}
}
25 26 27 28 29 30
Infinite Loop
Error at Line 1: Incorrect syntax
25 26 27 28 29
To get all Infosys Certified Go Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee