Task: Change the program so that the number, E is displayed on the screen with an accuracy of up to 6 decimal places.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication10 { class Program { static void Main() { double x = Math.E; Console.WriteLine("E={0:##.######}", x); Console.WriteLine("E={0:.####}", x); } } }
I have an idea what to do
Console.WriteLine("E={0:##.######}", x); Console.WriteLine("E={0:.######}", x);
But it seems to me that this is not what I mean therefore I am writing to the forum