Partial preview of the text
Download Programming and problem solving nites of unit 3 and more Schemes and Mind Maps Computer Science in PDF only on Docsity!
g 24 Ock-Fony for loop is used in proqsammtng language and in for Loop exe ore ‘+hree mandatory conditions — 1) Twitiolisation ) Termimakion condition I) Ine-rement | decrement operator i Pape! » dition \s al FULL) coke is S| = be Mage Wagivitte thanBs — sia ; —_— ; ccc: th nde -nlle, loop | first of ail te ts executed ond then condition | checked: (Sadns \ lisiaameat | while Joop 2s an entry contro\ \oap erik € ag oun uluLe. i — because 4n Hats Loop Toren condition | uno catpment util aa “print? ("Hello 3 | << a ia | Galea, Poukdle, Q==0) si —— — 1000 1004 loos =e +4 a (6A) aon Address = 1009 ie-arerrerry ” 7 1000+ thm’ (5-1) x4B —"% 10900 + ury = 1016 pi BA = = 2000 ‘add. BOE)> 2.000 ly » BU)s 22004 |» » BI2IJ= wos » » BIBJS 201> vy « Bl4}= Dob « « BI6}= 2000 Paperkraft a errs 4,0, 314,533 — : peal Center & wumber you re ual Stom ("td , & num) for (dso, des ydt4) i if (atéJ== num) : aA a 2 ( J ==a4) ot © pudnt f(" FO te not psy cont in the : paint $ (" Twa number is present in Ha. array ot Ie tocation\es arr Paperk&ft flay ; SM LF Ho ‘iba bt T=0; MG hike wee for(int ino, Jd tag Jo hs oe if (ALiJ==num)g m tL San break - ib cte=ep ~ print f C'The number ts present in the. arrays else printf ("The number is nat present in the array." ) 5 pita 0; Paper kraft Rovers | ‘5 Lingost sromch vs k _—— wn 4 Std ‘ww aud compas wale will - ~ eral a.) «. > 2: value) , 7 , oe | Sepa: aes = in Cig 3° Paperkraft es 4 ng fs 4 3 oro Ts sala att ae i = —_seang. (St ales Dak = sta tay [ste oe TS % *) [stg 40 t ss Wigh =N-43 encrErper a a ove 4 _— Il ind wid —— Se ltgs Mato tighd/o a om IL Ohack. Jor eaual 0'F NOV. 2044 Selection. Sort Fink tae ian, wale. anal then sung, BE sie bd . neeten oe . = 7 ek 4) Mi oom = un 0 ——~ n-| ype ees Wo. Paperkratt dba stdiohy eat) fucose Sah g int ALJ=£35+1,25, 05-425 } int i ods mini 3 int n= size of (A) [Size of cint) 5 for (4 =03 i<=m-7 4 fs % Find minimum et oye or js tats Jeena te) if CALST< ACmind) mint={4 J z > Ml Sap minimum with i clement imMt temb = Ati] 4 ALC] = A Cmint}; ACmint] = temp 5 paint (2 Paperkraft