c#

c#

C# program to remove duplicate characters from a string

C# program to remove duplicate characters from a string. It will take one string as input from the user and remove all duplicate characters.

Read
c#

C# program to find the index of an element in an array

C# program to find the index of an element in an array. We can use the FindIndex method to find the index of an array element.

Read
c#

C# program to find the area and perimeter of a rectangle

C# program to find the area and perimeter of a reactangle. The C# program will take the height and width as input from the user and print the area and perimeter.

Read
c#

C# program to check if an item exists in an array

C# program to check if an item exists in an array or not. We will use Array.Exists method to find that.

Read
c#

2 different C# program to check if all numbers in an array are even or odd

C# program to check if all numbers in an array are even or odd. One number array is given. Check if all numbers in that array are even or odd.

Read
c#

C# program to find the maximum occurring character in a String

C# program to find the maximum occurring character in a string. This program will take the string as input from the user and find the maximum occurring character it finds.

Read
c#

How to read float inputs in C#

C# program to read float inputs. We need to convert the entered value to float and we can do that in different ways in C#.

Read
c#

How to find the area of a Triangle in C#

C# program to find the area of a triangle. This program will take the base and height as inputs from the user and print the area of the triangle.

Read
c#

C# program to check if a character is in a string or not

C# program to check if a character is in a string or not. We can use the Contains method of the string class for that.

Read
c#

C# program to find the days, hours, minutes, and seconds between two dates

Learn how to find the days, hours, minutes, and seconds between two dates in C#. This program will print the difference between two DateTime objects and print the result.

Read