Javatpoint Logo
Javatpoint Logo

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




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA