&ccedil;&not;&not;9&ccedil;&laquo;&nbsp;

# &amp;ccedil;&amp;not;&amp;not;9&amp;ccedil;&amp;laquo;&amp;n...

This preview shows pages 1–12. Sign up to view the full content.

C pRD * “RD *H 0 “RD *H 0 0 1 _ 2 _ ª 3 _ ª H Ñ ·¶ ª* “ #”

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
§ 9. 1. 1 ˆ Ëμ ª * #def i ne ˆ * X ˜2 ´ª #def i ne pI 3. 1415926 §9. 1
1 ˜ !6 ;{+ Ð ·¶ ª*Ð H ± · ˜ !6 ;{+ Ð ·¶ ª*Ð ê ` ˜ !6 ;{+ Ð ·¶ ª*Ð ê ·¶ ª 2 ˜ !6 ;{+ Ð ·¶ ª*Ð ·¶ ª H ± ·

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
9.1 #define PI 3.1415926 main( ) {float l,s,r,v; printf(“input radius:”); scanf(“%f”,&r}; l=2.0*PI*r; s=PI*r*r; v=4.0/3*PI*r*r*r; printf(“l=%10.4f\ns=%10.4f\nv=%10.4f\n” l,s,v);} C C input radius:4 l=25.1328 s=50.2655 v=268.082
1 6 ;{+ ˜ !6 ;{+P Ñ ·¶ ª*Ð #def i ne PI 3. l 4l 5926; l 8Ñ · ¶ª* PI 2 8Ñ · ¶ª #def i ne #undef #def i ne G 3. 6 #undef G . . .

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
3 6 ;{+ #def i ne L 3. 6 pr i nt f ( “ L=% f ” , L) ;
2“RD * 0 ˜!6;{+ p‰ ´¶ ª* 9. 1. 2 H ‡´ ¶ª * #def i ne ó - 1 pR ;{+ 6;{+

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
9.3 #define PI 3.1415926 #define S(r) PI*r*r main( ) {float a,area; a=3.6; area=S(a); printf(“r=%f\narea=%f\n”,a,area); }
#define F(a,b) a+b main() (int x=1,y=2,z; z=F(x,y)/F(x,y); printf(“z=%d=n”,z); } z=5 C pRD * 0

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
6 ;{+ #define F(a,b) C a C + C b C main() (int x=1,y=2,z; z=F(x,y)/F(x,y); printf(“z=%d=n”,z); } + z=1
9.4

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 11/08/2009 for the course ISYS 2350 taught by Professor Joserf during the Three '08 term at University of Sydney.

### Page1 / 27

&amp;ccedil;&amp;not;&amp;not;9&amp;ccedil;&amp;laquo;&amp;n...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online