﻿using System;

class SumOfNNumbers
{
    static void Main()
    {
        Console.Write("Enter n = ");
        int n = int.Parse(Console.ReadLine());

        double sum = 0;

        for (int i = 1; i <= n; i++)
        {            
            Console.Write("Enter {0} number of {1}: ", i, n);
            double numbers3 = double.Parse(Console.ReadLine());
            sum += numbers3;           
        }
            Console.WriteLine("The sum is: " + sum);
    }
}

//Problem 9. Sum of n Numbers

//Write a program that enters a number n and after that enters more n numbers and calculates and prints their sum. Note: You may need to use a for-loop.
//Examples:

//numbers	sum
//3	90
//20	
//60	
//10	
//5	6.5
//2	
//-1	
//-0.5	
//4	
//2	
//1	1
//1