C# Simple Examples – Programming, Pseudocode Example, C# Programming Example

Tag - C# Simple Examples

C# C# Console File

Create a Text File in C#

In this tutorial, i’ll show you How to create a text file in C#. The following 4 methods can be used to create a text file in C#. In this article and code sample, we will learn how to use these methods to create text files...

C# C# Console

Find the Length of a String in C#

In this example, you will learn to compute the length (size) of a string. C# Code: C# static void Main(string[] args) { string str = "C# Examples"; Console.WriteLine("String Length : "+str.Length); Console.ReadKey(); } 1234567...

C++

Calculate the Power of a Number in C++

In this program, you’ll learn to calculate the power of a number with and without using pow() function. Example 1: Calculate power of a number using a for loop C++ Code: C++ #include <iostream> using namespace std;...

C# C# Console

Convert Binary to Octal in C#

  This C# Program converts a binary number to an equivalent octal number. Example: Program to convert Binary to Octal In this program, user is asked to enter the binary number and the program then converts that binary number...