Computer science by Behrouz A. Forouzan

Computer science by Behrouz A. Forouzan

Author:Behrouz A. Forouzan
Language: eng
Format: epub
Tags: C (Computer program language), Structured programming
Publisher: West Pub.
Published: 1997-08-05T16:00:00+00:00


*/ void getData (

int int int

k b,

"c )

{

/* Statements */

printf( "Please enter coefficients a, scanf ( "%d%d%d", a, b, c ) ;

b, & c

V

return ; } /* getData */ /* ================== quadratic ================

/* Compute the roots for a quadratic equation. Pre: a, b, & c are the coefficients.

pRootl & pRoot2 are pointers to root variables Post: roots computed and placed in calling function, returns: 2 two roots, 1 one root, 0 imaginary roots -1 not quadratic coefficients. */

int quadratic ( int a, int b, int c.

_i Program 9-6 Quadratic roots (continued)

.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.