c#

c#

How to compare two strings in C sharp

In this tutorial, we will learn how to compare two strings in C#. We will write one program to take two strings as input from the user. It will then compare the strings and print out the result i.e. if the first string is greater, smaller or equal to the second string.With this tutorial, you will learn how to compare two strings, how to read user inputs and how to use if-else conditions in C#. With this tutorial, you will learn how to compare two strings, how to read user inputs and how to use if-else conditions in C#.

Read
c#

How to build and run c sharp project from the terminal

In this tutorial, I will show you how to create one simple 'hello world' application in C# and how to run that using the terminal.

Read
c#

How to reverse a string in C sharp

In this tutorial, we will learn how to reverse a string in C sharp. The program will take one string from the user, reverse it and print out the reversed string. We will learn two different approaches to solve this problem.

Read
c#

Check if a number is odd or even in C sharp

In this tutorial, we will learn how to check if a number is even or odd using c sharp. The program will take the number as input from the user and print out the result i.e. the number is even or odd.

Read
c#

C sharp program to check if a number is positive, negative or zero

In this C# tutorial, we will learn how to check if a number is positive, negative or zero. The program will ask the user to enter a number. It will check if it is positive, negative or zero and finally print out the result.

Read