home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_03 / 177.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  595KB  |  2550x3300
Labels: binder | book | poster | reckoner
OCR: Floating Point Types 177 int main void double radius; pri intf( "Program to calcul late area and circumfe rence pri intf "of circle \n" pr intf pr intf oint you printf "please enter the radius ; scanf "9lf" &radius ); printf circle with radius %5.2f has area area( 5 radius 2f \n" radi ius, pri intf "The circumference of the ci ircle erence radius n rcumf return rea Notc 2 double area( double eturn PI*r circumfe rence / - double Note2 double circumference( return 2*PI*r circumfe This input program of consists of three functions and the displays main, intent the of the area results program, of and the rence The function ma announces accepts value for the variable radius calls to the other two functions Note 1:The are all prototype functions in declarations of the file subfunctions the dec ap ...