0% found this document useful (0 votes)
93 views15 pages

10th CS Ch. - Compressed

10th CS Ch._compressed

Uploaded by

Hussain
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)
93 views15 pages

10th CS Ch. - Compressed

10th CS Ch._compressed

Uploaded by

Hussain
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/ 15
weie ie 'y Sm Wi SEF SZ : Ul GF bent —— ir ie wt & a lr Yl 2 st bot de boned | et pi www.notespk. com printf (“%d”, b); Secest tele eet, 310m Printf (*x=%d /t y=%d”, x, y)s X=50, Y=11 lop PAE get ja ei bil o'r au Sernf? SgetcheOuigetch A He a SUG 2 deietetet (Conditional Logic) Ghats 106 yuri) 3 yu niet Pea ead athe Ny (tina D Cc B A eur abe f ee iE hi ex a vide i) wa ue ea tf. ee Sale — wa | ate | ga [Ree ate Sonetéi| 7 ting SecaQQesnasge Stet 3 < : O o Caw safe tor Bu | ink | oas : : 2 ‘else @ if(a>4) K 2 ate—=0 | a%e—0 a%e==0 Beale deettoorevter| 5 a vs | et AF ei! 6 siedis tase 1 eee eee — < “= at at ue wet ero Stee F| 8 Feud seth LT pete gelato » J E A eur ry ad Lod Sus i eop | off e 3 (ly ad Re nestedit) en bratatin XO) sect ga tN pin las wa tion 2 by Arde wis PA Wi E3 2 PE wal be hurbtol ge® ak stol gabranr™ gr ™ yu WA se BP pL Sadr tL tea PX Far wie unt gnc ernst eggs Us ey PLE yp PE3 VP 2 sheets FQ OF Abo tA iLike ofA Wirt ifr ntalirti a fpdhvis oF rif-elsetunLif-elseothe Fuss Leif pr fetit. apetie” Leu bien 34 Uw J chereelatot gle nl Sit igh 3 fe Lire aut oS 2 glint Bien dL EP Lap te Cobre nd Lit Pao gen thr Ger ‘lle mete Sis ctetnatat gt MALS? pe pb OE gedit ne testo a 2 sl getet Bet PE wetnatatae ee Ise if 23 ylgen ile Ba acer BRS a Vou Bien Sige re NSO PEL AL bE pass pe LigrL Me te AIS eee te ata yt gee wun ed Lie ls JrLiifelse titer Gree ni aah S063 SE MPass” OP oneen BNE re eS b Sai Dette. (efi Futria Wt 50 ASA gel eet Sigh Ll cte pen stok got oh DG ALR Rete JEWS OAc th 1001 250A Landi Sle beh Muth AUewite? ut If (sumber > 50) C If (number < 100) Q inieasage to display eo xf aed fue Slot FO titan yins, eben hat Se nb Nb tide hrf He ed Y tebe if (condition) statement WES cen PSH st oH ENE Like Uy 2 ater te HAP POL geal el Gh nl (sulla Lp We Adem oP Bg Der Mati Set Nyy lloe Exley Pratl eZ sa El GW LAP Shed? glo wet tinl bie ge etre tbe tie ie ai fortonfot BSN SUF aT get crn LESLIE LUO gee DEE a Lr SEEM ity tlle wg tng PERE tered ig Allon tbe Ef Sette Mh ered Ser Gi et thr eg alee EU Ere Lae ties 2100p ge A dali hE Se ft i 5Slien if-else statement_2 _ifstatement-lgeSinSert cy elle Ae Sef hibsadt Geet lrg — :B0Ngat #include ello void main () { int n; printf (“Enter a number”); seanf (“%d”, in); if (n%2—0) printf (“Number is even”); 7Sloue cailga if (condition) statement a! Ld else statement oS Sette densitiSiteitelse 8 Uloa en ESC™ van Linkin AT gale alg Sek Arifelse-if — -9Jloa Untiggen peur et PLE L LAS fiat Alvecte Ary Hitelse-if slop 10 Som if (condition) silo statement else if (condition2) statement else if (condition n) statement else statement Sebnested if 11 lout -cdwhested RFit tucerits — telloe we eet sd 12a if (condition) wired if (condition2) statement a titelsexd 130 lout if (condition) silo if (condition?) statement else statement (Data and Repetition) etl aa gl yt dala 2 D c B A 2 by bs ye e PE | wee fen A) we | th Oo. 2-2012 1-100 0-100 0-99 fe) 6. Sine 100A Ka 3 3 ue Ae < LED aie h Lat shy =< 4 neti ee) pte pNP te | 8 kin | ate | ay Le Bies| 6 dowhile | while _b< For ed Pia oH, af -e he For | 8 wi aw we tynottee phe tee | 9 vind | a 2 eh Male cit Ne 10 Feat elcid ye lta D c B A eur RA ae ote ~ a etfs] 1 FY | AB | Gast | Sas EF Sid ae Aes | 2 “ <> u oe A AL in| 3 bodes | fee rue reel FOL SCA KR dusiptogtte Seu | 4 kod | wa Ss ret POL Se ba tetra wins | 5 LAS AE | ABuly | meet) rete) 6 uw as ux SIE re teow Sirk Sheed S7ue | 7 he , hn ato Kind ELAN betes a ney wor - 1 0 rete tani Leu| 9 Ais | Aiea 2 wes La ELS Po Bi L es 10 — aL Ais a - ik a Wid LES Pot r BS ry =z ahs sr | Rewer tet ot Hore ter | 12 et SIR, Pe Fue Sets His vote efor | 13 ABuse ve ei SIS, het Sermedfitnovetesfor| 14 etstsn | HAS far sub, rete hike x etsfor| 15 . i oP eth irid Li ivr Le stor | 16 ay ain bé. SF re ee hdd LiF Leoni | VT dy ei qd ‘eta LLL M Sef Sota nL A eg! is tints etl a oul mc gle aA Sevier ben2 Ader WIRES frp Hue 242 Ath BL Lene A pihke POL LLY Soh LL Pe Ly Ath we wa per Se py i ie WL i eeben Be FAK LibnSeer FL pele tpg So Lockns en SeA Lite A Helfand 202 FIP am spe nt me RIB AL pL ot Ae th PIU IY LIF the te ai RAIS reba OL SAL A data_type array_name [N] = {value], value2, value3, ..., value N}; int marks [5] = {80, 92, 88, 75,95}; ga# ZU We 100g Feel Medal LL eA nada At aad Ser ptt eS Ae SprintfO 2 100d La ih tee Sire BEL Nhe Fr IMME Seg) Bice BI de® IL ng BES gr E lee tees for (int i=15 i<=5; i++) { for (=I; j<=5: +4) { Loop Body } } pepe Lew bin 34 Ur WIE Ate te Ap irLaghf SNe LLLA EAA Si Set tte PUA Pe PA tinige alee ~etn eH & Se UerWialed :2 5 gmt iil Biel retire DSW ER Ite IW EEE ett Shia IA) ald Be BEAN Neth Eat nae gle Lit ABE pL dt tei SS peng Sie nl Se wet SA AerenS$biLeesfor Ade eb te WP ke enbonh rte sfor “lye for (initialization; condition; increment / decrement) { } Code to repeat etl euDi taper tn cendlhat lira aise seaehiet fA whet 2 Sur b Ld Bsa piE late Sdlet redita 6LY ee WEA ee data-type array-name [size]; + dschar, float, inte Ub SE x5 teins Sts sdata-type-l ty tarray-name-2 Ose OAK PEM tlle Se LF ib Fee beetle Led, size3 SELF Vicks Pr Gl atl Gh pct (oul alah x eB tence Htidnns 1m OS NL Le ee UF pote tie Sib elle eI Rbk LO MS rl Lifiebeet be ILL LES SALLLSO 22S eet int marks [50]; 9a tebe SNe hotsLen Bloat Hilo Saibnt Gbobfoynl. WL LEA Set St ia el Ean? Peder SA Sal elenL les Kodenti tata ta hse ASN get Hinclude O slg void main () {int arr[5]={9, 25, 10, 8, 30} © printf (%d”, arr [4]; ° teed Slat Lech yrP ask aloe aeoerton Li Sriiny 6S loan rbeoetrE Ueids aloe o Line Eh iP Pd Yared ride teed LEA Mori Lilie 2 rn rF bis Tom AMAL LEAs oe do while loop-3 while loop-2 for loop-1 te Butt BS ee 8 Slgm ne du ANS re dil ite elloe we be LAY db LF Belg) See UN ob hb Seen Aid Ie Loe yt i le WS Lagi fe Sem fbSoe IIE) alle we ede mta Sots Sk bf leu P” gota gi 10 glut Hinclude etl void main () printf (“%d/n”, arr[c]); dint (Functions) Fr gaat pci pS lalbo A 7 7 B A eur ae CuiAuse | Besig we 1 ak SF e 2 or |e 8 a _ “ char” ut * char dO {return = ‘a’s} 4 ESS ose | 5 = ai Sint & § LAs 2 Huss S D 7 iS A eur ae fF | oer | ot is 1 EY | A Bure | Kesuy eet 2 re ai wet 3 we ess be 4 elt Oe ut ig wernt by Let Rr Lid ole 10 A,Buln | wilt | wlet | Kes 1 Fissat ue wit | Het | ult 2 si 13 fi 14 ec ebbn Sie tfi | 15 a Lint AT | 16 ie det op| 17 ae esp gi] 18 J - me PASE gg IL. 19 2S | ABute | unr? QPF GE 20 wine OO” Fil gol mei yr He Piition 24 Nw AWSPES Sou A “sptro8Fs MY shill Lee se dP case sarer onc ge bhes Qate $Saretprint0, scant, sqst, powO-g x2 ALUN SIF ates ize spied 3 Alene OAL FOS bre WLU er LAA aad 2 Ene bile See VISE te LMF LN 2K rehs LI adh tt tbe Li E GA te ten tPF oe OE mete Panto bye! eA Lowrbien 3Ade aoe Saat 21 SNe Buc tbe P Hig aLWwitie thnder LL Aes fids allo nee tet BE LT 22S Nat she? ilo LEIS ad L dernd aegis nd BSS Sebo Al 3 Ulm PP Ly Sling tt MPT Pb Lebar, le BEAL ba Shige lJ LESE Lb DS od Sn io ee hte Lb boc A pg cre he eg te IAI afer S LL Arr nastvtiie ld Sm bers Ubi e4 Lees Sa hags1 Kredi b LG 26 Sage te nLretumiaot SU lout BEd fetal! eo yprre UL Li Sond te? Bete tiny salee return value; «28 Ke yep vm te bi ainads Pret geal orl Gah png (oul lta bz 1d Net ilo 22 Jaa cathe web Leh nie” 3 Sloe esc t Tee wtt 2 tile meee het? Sen eS teed te Adlon Lig L PF Het ged Oh alge LL GIAB Gp Teeoree aie ng 5 Jha return_type name (Parameters) { 3 Body of the Function ted riya fF 6 ylaaa A Arb SES Lem dschanyint, floatyct ho puP re diel nbbutigty, lee -eeUerwoidint gel Ary zie Sethe a 3S seg Sout encase te” fF aebiceiont Lefee aloe tbe a0 hacnls? pession. : tee dibtr — :8 lou we OL Le eh i _e pert, Len tice aloe AR ag? 9 Slot retum_type function_name (type var, type var2) ire {Body of function} seen det 10 dla EPP ne WPS AESE alin seta sae 11 Sloe CP eh PE LL pi tN Sg byte te RABE — lie ete PEt rem ALISAF G12 Noma seni ebb Suede Aidt al rls evra lve lee site slidpd sade ie toikid NL ° 2 @ x o Compiled By: eb oh Ae SoaraierLar 2 poh Mryzn Nauman Sadaf GHMS 343 GB 0333-6858650 ai Slaies de SO 6S tke et Pe Seti Ute nh ip hive SRL rgd eee Sut Sse SEL AIS tS 2 plab tet ooo bsW ey wtf eln tims Ssx PL uf oul tested £-AW tant Wild on iV A Project Of Smart Notes & Test Series By Nauman Sadaf - Find Us On: wwn.noiespk.com

You might also like