ใบงานภาษาซี

1,167 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,167
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ใบงานภาษาซี

  1. 1. 35 q-ry-t.4 a sl I o^J. r?rr.rr:uuyt0t:fiJt ttj:r[n:ilst0 "n ,jtilu 116?floun10til/x r */ / / P ro q ra m : Wh i fe 2 . c/* 2 *//* 3 */ # i n c l u d e < s td i o .h >/x 4 *//* 5 */ void maj-n O {/x 6 */ i n tx :2 , y :I;/* / *//* g x/ while ( (x > -5 ) l l (y-- t 0)/x g */ i f((y z 2 )&& (x --% 3 )/* 10 */ p ri n tf (" ? d n " , y) ;/* r1 */ else/* 12 */ p ri n tf (" % d n , , x);/* 73 */ )/* 14 */ ]q.9J9,/4 dd t4 | o r trt:uu[lulJfit travy yt[1_Jduuttiln{luttglny:out?f x :OU x v 1 2 3 4 5 6 7 8 9. q YY4 d4. tfiryt5uut{uu lil:ttn::Jlqul6titd{ while rfrofu{oUaqarilQrJ^rirqquo,trreiau;u1udrJqr# 9 o j dp q9;u 4 j e.d__._ st 6l rla?ntu?ilr?tlqflrrgrJeflqqranu I dilqtfi nruuqlfuulrn lil:rrn:ruJufro -r Minremp. c lud ?UttUU10.:ru441lI T em per a tu re S ta ti s ti c s udy 1 m i n l m u m Ee mp e ra tu re uay 2 mini-mum l-omnar:frrra e vr !!r v!su u r v uay 3 m i n i m u m I am no r : l- r r r o Day 4 m l n i m u m Ee mp e ra tu re n-.. udy 5 m i n i m u m l-amnar:1-rrra uay 6 m i n i mu m l- amna r: fr r ra Day 7 mi-nimum fcmnarairrro a rra r:rya fL vemsncrueir r r e - i^i- "- rLry roL rg fiIL n f/ dav s * * J_ is xx-xx 6c c r eo f- ol qi r r < rtuvdlnt:furirqaruqfidrqerluusiaviudprrflunr:dr.rrufitfrordudrt riurfiu{ueiluueinv r o : ou il nI : rilauu rril| n{ fiI nretu0.1 et : ou fil: lio r { r u (iu fr t fr,rz) rvi riu -^ ^.=^^ -.-l +-.- I iu lil .- i < r fion::rud ln:ra#r.rnruqu,,uu.udl r r
  2. 2. 34 I 61 4l :"lu{ftl{m5.2 i 1 :;i f rir#q while a 6l r i.. dru$nruoqrun...... . (.... . . ..... ... . q99a 4 { ^ : 1. }ifii5eruHnulrfrofirn rirdl while - tSor 2. 1#fl6oufior:a{rlil:un:rupiohJfr /* I * / // P ro g ra m : Wh i l e 1 .c /* 2 * /# i n c L u d e < s td i o .h > I . /* 3 * /v o i d main0 { /* 4 x/ i n t i :0 ,s u m:Oi /* 5 x/ whi1e (i _ < 5 ) { /* 6 */ s u m :s u m* i ; .7*/ /* 1++; /* I */ p ri n tf (" n % d : % 3d" ti + It sum) ,. /* I J */ t ] .: I ) 7* f; iiig * lii ; , : : , , ; , "; ,:, ,, ,r:. ,; rrl " : . : qe)r)4 y ":^ d , i -^^. ri I -.d-14- ^--^"^---.0 nl:Yl1{lututtqau 0u uutt uunl i t[ou sum nfluttila{Hn{tf{: 0c{u lf r.tri Yllil :t sum tolJ I 1 3 4 5 {ruonqar:urnrriuufndu6u#qriuii + nni{t6

×