Query | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Query

How does the goto command work?

5th Jun 2018, 12:27 PM
Sakaar Sen
Sakaar Sen - avatar
3 Answers
5th Jun 2018, 12:37 PM
ODLNT
ODLNT - avatar
+ 2
A point in a program is declared in this syntax PointName: And then using goto PointName Makes the program to go back to that specific point and continue running
5th Jun 2018, 1:28 PM
Shahil Ahmed
Shahil Ahmed - avatar
0
will this work if i want to create a game in which ..If we press 1 we play the game again and if we press 0 we exit game?If yes . plz leave a example
5th Jun 2018, 1:34 PM
Sakaar Sen
Sakaar Sen - avatar