Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
February 01, 2009 function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
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)); } } |
February 01, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to zvia | zvia wrote: > Is it true? Well, void main will implicitly return 0 to the local operating system, so it must be! > void main() |
February 01, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chris R Miller |
Is it true thr input way? what is din type (I didn't put its a declaration)??
Chris R Miller Wrote:
> zvia wrote:
> > Is it true?
>
> Well, void main will implicitly return 0 to the local operating system, so it must be!
>
> > void main()
|
February 01, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to zvia | On Sat, Jan 31, 2009 at 8:21 PM, zvia <zviasch@walla.co.il> wrote:
> Is it true?
I have *no* idea what you're asking. What is your question?
|
February 01, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to zvia | zvia wrote: > Is it true thr input way? what is din type (I didn't put its a declaration)?? Thrinput's Way was discredited in the late 1700's by a German theologian named Albrecht Kirsch. It was already in decline due to its requirements of extreme asceticism; many scholars, most notably Dr. M. Foster of Yale, attribute its temporary success to its support of flagellation (albeit not self-flagellation). http://www.digitalmars.com/d/1.0/phobos/std_stream.html |
February 01, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christopher Wright | Hello Christopher,
> Thrinput's Way was discredited in the late 1700's by a German
> theologian named Albrecht Kirsch. It was already in decline due to its
> requirements of extreme asceticism; many scholars, most notably Dr. M.
> Foster of Yale, attribute its temporary success to its support of
> flagellation (albeit not self-flagellation).
>
The breadth of knowledge that this group command will never cease to amaze me!
|
February 01, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | On Sun, Feb 1, 2009 at 4:02 PM, BCS <none@anon.com> wrote:
> Hello Christopher,
>
>> Thrinput's Way was discredited in the late 1700's by a German theologian named Albrecht Kirsch. It was already in decline due to its requirements of extreme asceticism; many scholars, most notably Dr. M. Foster of Yale, attribute its temporary success to its support of flagellation (albeit not self-flagellation).
>>
>
> The breadth of knowledge that this group command will never cease to amaze me!
It is complete bunkum XD
|
February 01, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | Hello BCS,
> Hello Christopher,
>
>> Thrinput's Way was discredited in the late 1700's by a German
>> theologian named Albrecht Kirsch. It was already in decline due to
>> its requirements of extreme asceticism; many scholars, most notably
>> Dr. M. Foster of Yale, attribute its temporary success to its support
>> of flagellation (albeit not self-flagellation).
>>
> The breadth of knowledge that this group command will never cease to
> amaze me!
>
Ask us the same questions in person and see how fast we answer. ;)
-JJR
|
February 01, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christopher Wright | Hello Christopher,
> zvia wrote:
>
>> Is it true thr input way? what is din type (I didn't put its a
>> declaration)??
>>
> Thrinput's Way was discredited in the late 1700's by a German
> theologian named Albrecht Kirsch. It was already in decline due to its
> requirements of extreme asceticism; many scholars, most notably Dr. M.
> Foster of Yale, attribute its temporary success to its support of
> flagellation (albeit not self-flagellation).
>
> http://www.digitalmars.com/d/1.0/phobos/std_stream.html
>
That's certainly one way to answer such a question.
-JJR
|
February 02, 2009 Re: function to slive a quadratic equation | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | BCS wrote:
> Hello Christopher,
>
>> Thrinput's Way was discredited in the late 1700's by a German
>> theologian named Albrecht Kirsch. It was already in decline due to its
>> requirements of extreme asceticism; many scholars, most notably Dr. M.
>> Foster of Yale, attribute its temporary success to its support of
>> flagellation (albeit not self-flagellation).
>>
>
> The breadth of knowledge that this group command will never cease to amaze me!
Don't look at me, I'm just a screensaver!
|
Copyright © 1999-2021 by the D Language Foundation