Is it true? import std.math; import std.cstream; import std.stdio;
void main() { int a,b,c, result, result1, result2, mechane, mone=0, diskremin; char[] str; din.readf( "%d", &a); din.readf( "%d", &b); din.readf( "%d", &c); writefln("Enter parameter for quadratic equation: "); writefln("Enter a: "); din.readf( "%d", &a); writefln("Enter b: "); din.readf( "%d", &b); writefln("Enter c: "); din.readf( "%d", &c); writefln("\nThe mishvaa is: %dX^2+%DX+%d",a,b,c); if(a!=0) { diskremin = b*b-4*a*c; if(diskremin>=0) { mone = pow(diskremin,0.5); } mechane = 2*a; result1 = (double)((-b+mone)/mechane); result2 = (double)((-b-mone)/mechane); writefln("\nresult is: %d , %d",result1,result2); } else { writefln("\nresult is: %d",(double)(-c/b)); } }