Declare an integer variable size of 10 elements, input the elements. find the sum of the elements. display the elements. display sum
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int size, sum = 0;
Console.WriteLine("input 10 elements");
size=Convert.ToInt32(Console.ReadLine());
for (size = 0; size <= 9; size++)
{
sum = sum + size;
}
Console.WriteLine("The elements are");
sum = Convert.ToInt32(Console.ReadLine());
}
}
}