c#

3 different C# programs to print an inverted right-angled triangle

C# example programs to print an inverted right angled triangle with a character, with numbers by using for loop or while loop in 3 different ways.

Read
c#

C# program to print a right-angled triangle using any character or number

Learn how to print a right-angled triangle using any character like star, numbers or any other character in different ways, by using for loop and using while loop.

Read
c#

3 ways in C# to print Fibonacci triangle

3 different ways in C# to print the Fibonacci triangle. We will learn how to use a for loop, while loop and by using a different function to print the Fibonacci triangle.

Read
c#

C# program to print the area and perimeter of a square

3 different ways in C# to print the area and perimeter of a square. The programs will take the size of the square as input from the user and print the area and perimeter.

Read
c#

4 different C# programs to convert decimal number to hexadecimal

4 different C# programs to convert a decimal number to hexadecimal. The programs will take the decimal numbers as inputs from the user and print the hexadecimal value.

Read
c#

4 different C# program to find the HCF of two numbers

4 different C# programs to find the HCF of two user given numbers. By using a for loop, while loop, by changing the larger value repeatedly and by using Euclidean Algorithm.

Read
c#

4 different C# ways to find the LCM of two numbers

4 different C# programs to find the LCM of two user given numbers. By using a for loop, while loop, recursive method and by calculating the GCD.

Read
c#

C# program to initialize an array of objects and iterate over the objects

In this C# tutorial, we will learn different ways to initialize an array of objects. This post will show how to initialize an array of objects and how to iterate through the array of objects.

Read
c#

3 ways in C# to remove elements from an array

In this C# tutorial, we will learn 3 different ways to remove elements from an array. By using Where, Array.FindAll and Array.IndexOf methods to remove elements from a given array.

Read
c#

How to get the length of an array in C#

In this C# tutorial, we will learn how to get the length of an array in 4 ways. We will learn different ways to find the length of one dimensional or multidimensional array lengths in C#.

Read