[go: up one dir, main page]

0% found this document useful (0 votes)
54 views26 pages

Computer Training

Uploaded by

Lin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
54 views26 pages

Computer Training

Uploaded by

Lin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 26
crear Set tr Aw speetol t pate TN NG, QE camry ' | b sped] \n mean new Une \e Aoi xontatl sper key Pdknt — repruent cnrog fot a,b y p cht gent oe chow — a eae Co GPs , ‘ 2 vawable (AC), net nbd of & ¢ phe]. Sormpertem : cnteger veluet ee SP fectmoly cartes tyied ed wey flood if - conditvor for - Looping sloternunt ip- else - pohile ere clo constant — conslard values numetital Character [4 name and addares thr cy] constant constand Aa Sk aN tntgen seal singe hin i yoy Gout shock 3-128 t 128 d : ( denotid by symbol L t dd Keal: #800000 = 45e6 Hi wes EC = aes nik (ayter € derimal - and + ioe ane olpey ce Stngfe = Se o dangle quotas ien may gtaing 2 Nn double quctedin rocks. ” tg underscore can be gun belween characters Go namt_hevseename Vasiobles — heeps ang the valuoy 4 w&ta b,c vatiahlu: a,b, te cant be nace as Unser constant Uakech 69e392L v 25,000 X comma ten'f allocied +5-0E3 ~ S525 ~0-00003¢ ~% 4-5e4 b 4 X blank spare blo € and 4 wot a o allocsed. 1569-5 X10 8-8 (deetnial) afi E gass = x dja siyp tpt allowed. aaloe [23 keyoootds-+ constards - C tokent peat mathernadcal O«/ erprces(mk (paimardic , +)~ 1 Rr Jeli visto, Yo (modutewe dlais ton) Trieqgn athmescs : 7 o> a=4t bed ath = (Fr easel! pie Gees opuany ath = 42 deided <-ajy = 4 as xeminder wopp't be tater diuider Sz | ORG = 4hE = 2 A fo2 = & 4 fox8 So D> sign yy the anton jas =, J © depends om gitsd epuack | Mh-3 = Ba soy ry axe Fox both divistm and. module drvici'm Mixed mode Reel arithnetis- Blog = hs peta mede Ig bee \ ) Medulo adiuisrm & not applicable tb realy numbers. Oe 4b * Sepenth 2,3 and fee 236 > h= 235° ce ose 13S 2 Ss Die 3 OF ee eee Tico = 2 Be pass - = tae, Ojo ™ *fin= eS ox hie Tow Of egue 7 > bere than —> equal to — not equal t iii) Logtcal Opuotear — & conned Ds tees peloteonet “oo. ore” ANP fe Yo dogieel ont 1 oy ar bbs Ma = 1° Vw Assignment Opuateds » ~ ans cy ncey . cool the valu. 6 & vache 2 LY: a s CNA ¢ > (wy Bit wire Op uote: (wy ConditronelL Opuatos : wi) Pruemed and Deeamert Opuctoe at+ bo mean ae a-/ post fr2. ; Ne Prot Ms value wrt - y chan from S t 6 agtet ee he tye Sasien After oni taal ee elie Me Afiex thot both M= yn 6 2 df ong Utena | Yor m p Te patnt oll natutad pumbees neo nen 5/07 [2023 Input - Reaclin ” patel “ee PhOCUs ng — executim op by obs eins ET gee o eat Inpul oulpet doda jl ¢ Tinput sie Stal prints contel inpud codpd det Sd lone sstipids ie toclude Po be CoS the in ek Mroctaked wilh tgtiny, Miia [eterna hea P file Jtro.+ oe the oF Fas enced 40 hold he stieen ae we | We ane nddudid. F theluduestdio hd Thue & no spas al bers and Scand a pong’ \n 1) | ) hs q’ @ enothe line } on Q cole a preqeam te accept tuo numbus ards fat apeu sum~ wt include ) main () f | int 265; | p#include matn () | f ) floot fie j Cus Ch A) PREMEL("\, snter fobserrhett fempuatuce” ) 5 50g Ht", B 4); cee ah! ; paints ("\y the wae dermpuodure nv celel vs= Ht, cea) a FMR a program th accept two no. s and find Hua prodeut Cad dypecence e Henelucke D nd cle Kctonso hy matnt) { a,b, 5;Pf lsc 6 0); Pad §('\n tnder fied deget") peck Sane (cl Bia), | PREM n enter seconcl diet"); sean ("Yd") Bb) | s= a-—b} paints ("\m the depperenee ~ Yo d we) pP= arb; punty Co \ in The: peodut % Be Pe gee > POs oie accep “he nadir x a ,ciecle and G28 grea _anel. Pureber « wintlucle D include < conio hr poainc) Top ‘ | tnt n,a,;b:c,5,4% ; clash 0); perlf (“\n enta a dee a number); of seorscuy 4" gn); ~ = a= NY 10; Q Hampel, ba); be Mf) 1 b= (hw) 7. 10 ; a Se oe € = feo seang {ted hc}; S= atb+c; A= a4lo04+b¥lo+c ; Gs Vp ajar PAtntE ("\m the sum of ot dipil & Yodi£) J a Patt ("\Revese Mad" x): Lot jo vn Pye Ss ter arrovrt | C=O'/5x 5A ioe SU hainieD x the proodtut @ Over ¢ dg H Dlade D rude headu cle SEPCK) hstncex) ces (%) Weeron 409(0) htance sqrt 00) Ou (%, 2 ee iGo at abs(%) 3 [}modulus a wal a progam te accept a number ae ee Square) pool and sceuth powe | Hirdackldio-h> ®@ frrtucls ¢ conte A> oy énclucl. hoop S rot Pe, foe $j C1ssA(); Penk $ ('\n enter the number” ‘ FONE ("Ld"); g- sqnk(x) ; (3 p> pow(76); PACE Nahe Squsrt snod hi = 45% or PrenE("\n the etuth power w Se | yoni i » p)? 5 See ee eee Ne te RAMS EER eset tonal Sate t ist y hing if (eondétern) 4 st atrmerd broek ) x i statment block - J ; uy else (conditt om) ye 28x & we false slocdemut 5 F | true gtatemert ; | | a Wh a progeany to gad fe no. & even ocadd? Finclude « poor C) 5 ot n; eles () 5 Party (\n enker a. number” ) ; oo (° %at",n) i ® 8 Statirnent 2 mastipghe of % Just Sheer th (nied ae o) Acct 3 10S and find thi tocaet ayb < | Bl ne ; In enter, Hate numbers Ea) HEE preody ( | sean ( ues, es Ba)} \. enter the reconcl nun p. tf! Lin a bed’ 2), " J? | sang (8 fod} 86); i (arb) paint (S/d the co Oe else - at pear the oe ab" by, aoe CF 7 qa Cn o pao tL aug 3 nos and Yee Ae foxpesl Pindkude TD include conn. A> pund Pottual number upt 0 main () \ y new Uns il nj cere ee ah =i) sstad: ze | panty ( iad ' n)5| tole (MWe cb’, 2): 3 ee eres | =+! ; | %& (7 <= 100) | (n= nat ox N=h+)) | Go stad ; ene sc | Garo, o | even numbets opt foo TA Wee D=Ptr2-; (or a program t punt hee 100 edd pow. tindtude D fneluds «conto k> maint) i tn, $=0, 4; puolfl'\n inte he nunbur’ )j sang ("%d", an); owe (n>o- : « af te fre Ka 7 lo 2 an) P= Oho; 16 pei (" We sum e He digt Xd" oly t 2] 08 [2023 G_ To wind the cool % ow quadtater egualon os 0 ( ged. 4 G+ bx +0 =0 b ‘ x ey We -o eo a : OE deo , coe =", 1%, s neat and | dinclucle D include | gv include < corto. hy main ¢) ¢ | int cp mv -So=0 5 float Sy av ; coh pes | Apert ("\w tnt the value of numbec”) 3 Stang ("Yd En), shih ex=o) GuStws c= Cable 3 lg We ‘ Pain (0 dhe overage & a) ®avg) 5 Paeok (ethe iseum 6h gue a. le ete ae er ag )) 7 a | y/o1lee23 fooping slatiment qyndant 40 (conden and tribal value) : { bedty sg the Lop } t peeve” olin . 5 a ¢ inihaticabn test conditeen & gauemeed/deeccernerS a for (h=1 5 né=too 5 n++ ) . if To de progams win ene neg be poe fit Loop malix we need L we met than Se eh Cee ce ptr) 5 for (a-0j ALS j att) ae ; yy Fro boop executed ie Han Cay oufer Loop @. wih o fie t pein reucl nurmbecs ae foo # (ncudecs fdio- p> # Prrluds < cwonto-h> main () f int Wj; pel Lats (Vn ed", nd / { ’ y | ] ¥ gulch} | Le 8. To prirt even numbers apt too Hindude< stdto-hy @ include ¢ contin b> main c) mein; ne 40k (n=2 5 n<=/00 35 ay int) purty CN ln). Pai : | a with a Preguans te find the Joteecad a aunte mete pe oa le Hincluds ¢stdio.hy H (nitude (66ni hy maint) i int ng / ies ae j 1 Peet (Xn entet ie 7 (rg "bays fox Cher Jaro; pent) Yi nety 7 Phe tee ee pecoly (6 %¢34 4), $ y , cdot f(8\n " );5 eee G To prt She sum of 2 motte ue Ptnclide «slacoh macn() ; Wnt af3903), beaitsd 63037, 6p oe reO Fao san) ? - j 7s OC fe ITD FRUGAL \, tnket the pial medicn value"); cot (A.d" Baprgepdy) JL Coaon F437 ot +) 4 foe Gis 1 peint ('\n enter the second makin vale"), ergo ek" 8b LeILfl); G a fox [i205 (<3 -C4+t) i SrCf=0%5 $435 971) tee criti) - attics jy breayy ; pe Oe ZAM" cremgy) pert (Nay f

You might also like