public static void Main()
double shares [6], savings [6] , tot_share , depot , interest ;
Console.WriteLine("enter value of shares");
key = Console.ReadLine();
shares [d] = Convert.ToDouble(key);
tot_share = tot_share + shares [d];
interest = shares [d] * 0.04;
savings [m] = tot_shares + depot+ interest;
Console.WriteLine("total savings for this user is:",{0} savings [x]);