If you are a c# beginner or want to start learning the c# programming language, then this program will help you to understand the basics of c# programming.
In this tutorial, I will explain how to divide two numbers using a c# programming language with an example and output. At the end of this program, I have shared the screenshot of program output.
Copy the below c# program and execute it in your Microsoft Visual Studio IDE (Integrated Development Environment ).
static void Main(string args)
Console.WriteLine("Division of two Numbers");
Console.WriteLine("Enter First Number");
int first = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Second Number");
int second = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Division of " + first + " \u00F7 " + second + " = " +
Convert.ToString(first / second));
Liked this tutorial? Do Like & share with your friends 🙂
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.