Program to demonstrate the use of goto statement in C#

 

Output:-

Sum of odd numbers from 0 to 20: 100

 

The goto statement is used as a jump statement that skips some of the some that we don’t want to execute on some condition….

The following two tabs change content below.

Jagruti Chaugule

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">