public static void Main()
double f, c, g, d, e, h, ttl;
Console.Write("Please input a positive integer greater than zero for the value of h: ");
h = Convert.ToDouble(Console.ReadLine());
ttl = h + d + e + f + c + g;
Console.WriteLine("===============================================================================================================");
Console.WriteLine("The following values of the variables are c = {0:f2}, d = {1:f2}, e = {2:f2}, f = {3:f2}, h = {4:f2} and g = {5:f2}.",c,d,e,f,h,g);
Console.WriteLine("The sum of all the variables is {0:f2}",ttl);
Console.WriteLine("===============================================================================================================");