CSharp - Write program to Read more than one value

Requirements

You will write a program that sums three entered numbers.

Demo

using System;
class Program/*w  ww  .ja  v a 2  s  .  co  m*/
{
    static void Main(string[] args)
    {
        // Preparation - variable to accumulate intemediate result 
        int sum = 0;

        // Input - 1. number 
        Console.Write("Enter first number: ");

        string input = Console.ReadLine();
        int number = Convert.ToInt32(input);

        // Adding first number to intermediate result 
        sum += number;

        // Input - 2. number 
        Console.Write("Enter second number: ");
        input = Console.ReadLine();
        number = Convert.ToInt32(input);

        // Adding second number to intermediate result 
        sum += number;

        // Input - 3. number 
        Console.Write("Enter third number: ");
        input = Console.ReadLine();
        number = Convert.ToInt32(input);

        // Adding third number to intermediate result 
        sum += number;

        // Output 
        Console.WriteLine();
        Console.WriteLine("Sum of entered numbers: " + sum);
    }
}

Result