Multiply Two Numbers without using * (Multiplication Operator) in C#

Hi Programmers, welcome to new article of c#.net. this article i’ll write the program to Multiply Two Numbers without using Multiplication Operator in C# console application. To Achieve the output we should use Logical XOR operator , Shift operator and Conditional AND operator. Let’s see the codes. Directly Test Below codes into Editor.

Count occurrences of a character within String in C#

Hi Programmers, welcome to new article of c#.net. This article i’ll write the program to Find the Number of Occurrences of a Character in a String in C# Console application. To Achieve the output we should use for loop ( any loop you can use) and if or if else statement.Let’s see the codes. Directly […]

Find Smallest and Second Smallest Element in an Array in C#

Hi programmers, welcome to new article of array programming.This article i’ll write the program tofind the smallest and second smallest element in an array in c# console application. To find the smallest and second smallest elements, we should use for loop and if else statement. This article i’ll use single dimension array. Let’s see the […]

Jagged Array in C# with Example

Hi Programmers, welcome to new article of c#.net. This article i’ll write definition and program for jagged array in c# console application. The Jagged Array is an “array of an arrays”. It can store arrays in which length of each arrayindex can differ. For Example int[][] arr = new int[3][]; Here jagged array initialize with […]

Selection Sort Program in C#

Hi programmers, welcome to new article of c#.net. This post i’ll write programs for selection sort in c# console application. selection sort is a simple sorting algorithm. Selection sort is used to compare array elements. It divided array into two parts, First sorted part at the left side and second unsorted part at the right […]

Bubble Sort Example in C#

Hi programmers, welcome to new article of c#.net. This post i’ll write programs for bubble sort in c# console application.Bubble sort is a simple sorting algorithm.it compares each pair of adjacent elements in the array and the elements are exchange if they are not in order. let’s see the codes. Directly Test below Codes into […]

break, continue and goto statements in C#

Hi programmers, welcome to new article of c#.net. This post i’ll write definition and programs for break statement , continue statement and goto in c# console application.Break statement :The Break statement terminates the closest enclosing loop or switch statement in which it appears. loop such as for ,while,do while loop. let’s see the codes. Continue […]

Switch Case in C#

Hi Programmers , In this article i’ll write definition and program for switch case in c# console application. The Switch case is selection statement that chooses a single switch section to execute from a list of options based on a patternmatch with the match expression. we can pass char,string,bool,integral value, int or long, an enum […]

Add Two Numbers Without Using + Operator in C#

Hi Programmers, welcome to new article of c#.net. this article i’ll write the program to Add two numbers without using addition operator in C# Console application. We can easily achieve the output by using AND (&) or OR or Left shift operators. let’s see the codes. Directly Test Codes into Editor

Method in C# with Four Examples

Hi Programmers , welcome to new article of c#.net.This article i’ll write the post for method in c# console application. The Method is a code block that contains a series of statement. The Statement is executed by calling the method.Syntax :[access modifier] return type Method_Name ([parameter list]){………..Method Body……….}Let’s see codes of different types of method […]