Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Keep gettig this error No such label 'Start' within the scope of the goto statement

$
0
0

This is my code:

 

 

using System;

namespace Test2
{
    classProgram
    {
        publicstaticvoidMain(string[ args)
        {
            int num01;
            int num02;
            
            Console.Write ("Type a number to be divided: " );
                num01 = Convert.ToInt32 (Console.ReadLine () );
            
            Console.Write ("Type anouther number to be divided: ");
                num02 = Convert.ToInt32 (Console.ReadLine () );
            
            Console.WriteLine (num01 + " divided by " + num02 + " is equal to " + num01 / num02);
            Console.ReadKey ();
            Console.WriteLine ();
            goto Start;
                
                               
                               
            
            
            
            
            
            
            
        }
    }
}

 

 

Not sure why its not recognizing "Start".

Everytime I run the program i get this error: 

            No such label 'Start' within the scope of the goto statement
                
                               
                               
            
            
            
            
            
            
            
        }
    }
}

Any help is apperciated, Thanks!


Viewing all articles
Browse latest Browse all 1764

Trending Articles