Go Goto Statement

The Go goto statement is a jump statement which is used to transfer the control to other parts of the program.

In goto statement, there must be a label. We use label to transfer the control of the program.

Go Goto Statement Example:

Output:

You are not eligible to vote 
Enter your age 15
You are not eligible to vote 
Enter your age 18
You can vote 

Next TopicGo Break




Hot Tutorials

Contact US

Email:jjw.quan@gmail.com

Go Goto
10/30