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  

A program to sort an array of integer in ascending and descending order in C#

Output:- Given List:  23 45 76 32 90 34   Sorted List: Ascending:  23 32 34 45 76 90 Descending:  90 76 45 34 32 23