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….

Find s=1 – 2 + 3 – 4 + 5 – 6 + 7 – 8 + 9 – 10. in C#

Output:- The value of s is: -5