I ended up getting it myself- had to follow guildlines, didn't know this or I would never have made the thread.
I'll post what I end up with tommorow. Thanks anyways mates.
I ended up getting it myself- had to follow guildlines, didn't know this or I would never have made the thread.
I'll post what I end up with tommorow. Thanks anyways mates.
Turns out I never gave a language- thats my bad, I am using C#
Anyways, I ended up getting it.
using System;
class test
{
static void Main()
{
double a,b,c;
Console.Write("Enter Integer a");
a=Double.Parse(Console.ReadLine());
Console.Write("Enter Integer b");
b=Double.Parse(Console.ReadLine());
Console.Write("Enter Integer c");
c=Double.Parse(Console.ReadLine());
if(a==0)
Console.WriteLine("This is not a quadratic equation");
else
Console.WriteLine("{0}",Delta(a,b,c));
Console.ReadLine();
}
static double Delta(double x, double y,double z)
{
return y*y-4*x*z;
}
}