C# Console Application

Calculate Sum of Two Numbers in C#

In this example, I’ll show How to calculate sum of two integer entered by user. 




Here we are taking the values from user and then performing the addition on the input numbers. 
The reason we are using the Convert.ToInt32() function over the Console.ReadLine() function is because the Console.ReadLine() function receives the value as String, so to convert it into a number we are using the
Convert.ToInt32().

About the author

admin

Leave a Comment