Yes - indeed - the solution is with for loop.
See the 15th line - to view the view the sum of the numbers on one single line - the Console.WriteLine is OUTSIDE the for loop!
Here's mine:
using System;
class SumOfnNumbers
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
double sumOfNumbers = 0;
for (int i = 0; i < n; i++)
{
double num = double.Parse(Console.ReadLine());
sumOfNumbers += num;
}
Console.WriteLine(sumOfNumbers);
}
}