In this tutorial I will show how to find Odd numbers in C#. I have given two example first example is very simple. First example I have used simple for loop to find Odd numbers.Second example I have created a Linq for finding Odd...
Tag - C# Console
C# Program To Display Smallest Among Three Numbers
In this tutorial, we will discuss the C# Program to display the smallest among the three numbers. In this program, we will discuss a simple concept of the program to find the smallest number among three numbers in the C#...
Program To Find Largest Number Among Three Numbers In C#
In this program, we will discuss a simple concept of program to find the largest number among three numbers in the C# programming language. In this topic, we learn how to find the biggest number from given three numbers. we can...
Calculating the area and the perimeter of a Square in C# Console
To find the perimeter of a square, just add up all the lengths of the sides. The area of a square: To find the area of a square, multiply the lengths of two sides together. Another way to say this is to say “square the...
C# Console Application Examples (50+ C# Examples)
C# is a simple, modern, general-purpose, object-oriented and high-level programming language originally developed by Microsoft and released in 2002. This tutorial gives a complete understanding of C#. This reference will take you...
Simple Calculator Example in C# Console Application
The following C# code is for a simple calculator. This app is capable of performing addition, subtraction, multiplication as well as division. C# Calculator Example in Console App Code: C# class Program { static void...
Find The Longest Word in String Array
Finding the Longest Word in String Array using foreach loop
Calculate the average of randomly assigned values with C# Console App
Foreach: The foreach statement repeats a group of embedded statements for each element in an array or an object collection. This C# Program Finds the Average Values of all the Array Elements. Numbers generated by Random class...
Month Number to A Month Name in C# Console Application
In this article we will learn how to convert month number to a month name in C# Console Application with array and if statement.
Get Month Name From Month Number – C#
This article explains a C# program that takes a month number as input and displays the corresponding month name. It uses the switch statement, making it a simple yet effective example for understanding control flow in programming...