I have used Visual Studio 2019 Community for debugging purpose. But you can use any version of visual studio as per your availability. C# Code: C# internal class Program { static void Main(string[] args) { string username...
Tag - C# Loop Examples
Division without using ‘/’ operator in C# Program
This program allows to simulate the operation of an integer division between 2 positive integers a and b entered, we divide the largest over the smallest without using the operator “/” and then display the quotient...
Reverse an Integer in C#
In this program you will learn how to reverse an integer number in C# language. The program takes the number by the user, then displays the reversed number on the screen. For example, if the user enters 678 as input, 876 is...
Write C# Code to Convert Digits to Words
In this post, we will writa a C# Program to Convert Digits to Words. C# Code: C# Program to convert Digits to Words C# class Program { public static void Main() { int number; int nextDigit; int numDigits; int[] n = new int[20];...
C# Basic Programming Examples
C# Examples on Fundamental Mathematical Operations 1) C# Program to Check whether the Entered Number is Even or Odd This is a C# Program to check whether the entered number is even or odd. Problem Description This C# Program...
Print Star Pattern Program in C#
Star Series and Patterns Programs in C# Half, Full, Incremented and Decrement Stars Series, Pyramid Pattern programs Program 1: C# static void Main(string[] args) { int i, j; int MAX = 10; for (i = 0; i < MAX;...
C# Program to Calculate the Power of a Number Without Using Math.Pow
This C# program computing an of the number that given two integers base and exponent by user. Create a program that takes two integers base and exponents and compute the exponents without using Math.Pow() Create Custom Pow Method...