public static void Main()
Console.WriteLine("Welcome to the derivative/integral taker program!\nThe purpose of this program is to take the derivative of a linear equation to find it's curvature at a point, or to take the integral of a linear equation to find the area under the curve!");
Console.WriteLine("\nWould you like to take a derivative (D) or an integral (I)?");
string dori = Console.ReadLine();
string DReply = ("What is the number in you linear equation prior to the variable? (_x^N+Y)");
string IReply = ("What is the number in you linear equation prior to the variable? (∫(_x^Z)dx)");
string doriother = ("The response you typed does not exist. Only D and I are allowed replies. (Both capital)");
string DExponent= ("What power is you variable rasied to? (Zx^_+Y)");
string DAddition = ("What constant is added to the equation? (Zx^N+_)");
string IExponent= ("What power is you variable raised to? (∫(Yx^_)dx)");
Console.WriteLine(DReply);
string Danswer1 = Console.ReadLine();
decimal Numanswer1 = Int32.Parse(Danswer1);
Console.WriteLine(DExponent);
string Danswer2 = Console.ReadLine();
decimal Numanswer2 = Int32.Parse(Danswer2);
Console.WriteLine(DAddition);
string DAnswer3 = Console.ReadLine();
decimal Numanswer3 = Int32.Parse(DAnswer3);
decimal One = (Numanswer1 * Numanswer2);
decimal Two = (Numanswer2 - 1);
string FinalAnswer = (One + "x^" + Two);
Console.WriteLine("\nThe derivative of " + Numanswer1 + "x^" + Numanswer2 + "+" + Numanswer3 + " is\n" + FinalAnswer);
Console.WriteLine(IReply);
string Danswer1 = Console.ReadLine();
decimal Numanswer1 = Int32.Parse(Danswer1);
Console.WriteLine(IExponent);
string Danswer2 = Console.ReadLine();
decimal Numanswer2 = Int32.Parse(Danswer2);
decimal Zero = (Numanswer2 + 1);
decimal One = (Numanswer1 / Zero);
string FinalAnswer = (One + "x^" + Zero + " + c");
Console.WriteLine("\nThe integral of (∫(" + Numanswer1 + "x^" + Numanswer2 + ")dx) is\n" + FinalAnswer);
Console.WriteLine(doriother);