Main menu

Search form

Latest posts on tagged on "Console"

In this example I will show you how to reverse the order of the array element using c# Linq. I stored list of numbers in an integer array in a variable. I need to include namespace System.Linq and used reverse extension method. The result will be element of arrays in the opposite direction.

The purpose of using enumeration is to improve readability by enabling us to use meaningful symbols instead of numeric values. The value of variable is an integer,it is easy to output the name of the symbol rather then its value.

In this section, I explain how to use Write and Read Line in console Application. In WriteLine helps to display or print your message once you enter the message then press enter the message(name) will read by ReadLine