using System;
public class Program
{
public static void Main()
//Creating arrays
double[] Grades = {6.8,6.2,3,1,4.5};
//Adding elements to arrays?
//You can't. Once created, the capacity cannot be affected.
//However, you can edit the contents of the array (aka change the values).
//Getting the size of my array?
//Grades.Length;
//Indexing arrays (I'll obtain the second element)
//Grades[1]; //This is pronounced "Grades sub two"
//Editing array contents (Changing the 3rd element to 5)
Grades[2] = 5;
//iterating and printing all array contents
for(int i = 0; i < Grades.Length ; i++){
Console.WriteLine(Grades[i]);
}
//some magic with arrays
for(int i = Grades.Length-1; i >= 0 ; i--){
//duplicate the value of each item
Grades[i] = Grades[i]*2;
foreach (double item in Grades){
Console.WriteLine(item);
int count = 0;
while(count < Grades.Length){