0% found this document useful (0 votes)
25 views31 pages

Advance Pattern Problems C++ Notes Homework Day 11

Hhnnvccvnnb

Uploaded by

Sargam
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)
25 views31 pages

Advance Pattern Problems C++ Notes Homework Day 11

Hhnnvccvnnb

Uploaded by

Sargam
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/ 31
ot . +f Day11/200 ‘Apvance 1A lameew Rosters a es “a HK Kk fon n= 5 a -* XX * = ——— * 4c KK pos a Rene Ree ee eek ———e Poco Pa = =] Shall fe it con] aL SZ Kaw) = ul o oma | Al A» _Codo Oe Saale a - Saale eee Ufc aw, col, pe Se — | eee . “bo. 2 eee Stl. - " " | Ze etn, a i Eee Pe no (neue 1 sou Ln; mowtt) = | il LZ Shoes i a ae ‘ang Fon (cod = 1 - col & (n=now) + coh at Ta 7 I : T cout ed "c:\\/sers\palka\OneDrive\Co paisenenen oeareencrri aetna are ery venir arene crarueld Problens\" ; if ($7) { g++ Pattern2.cpp -o Pattern.2} ; if ($2) { Acc ied Enter the n: 5 Ft 2 FI ry A ft a eri ESTEE S Rete TeN NUN Cs ar Gea er aU ego Cees eer ecm na gee ne Peet ek ees eee ead te Pat Peete amar eens are ney een ree spt emn UD ee Re eee cee BEC ac on Pere ae roamen hi en cy eer a ey for(eol = 1; col < (n-row); colt) rT F re Perce 2 Crean 1 Een trea en Str er or Cee Kora erat aici teed | aco ort aes a oc eee re ere oa aa t Crear Rpou| Siena Soren) = - 4 3 oe ©) Rows 4_sboce = I-19) 5 2 a Row=2 ,sbaco=2-1=9 | {| _5 _} = 2 Bow=3, shares S129] 5 Y | Bike this 5 baa | | —S Sea patot__ 0 — Ces 2) — a a i = 4°* Abbnoadk ving 8) —s 9 7 pont J 9=84 I Pre (acu =4- ees. es aa ae . ZZ S poco Print : ‘ “a CooQ= I> colS (row - 4). Dae a 4 eatin <<, ne i eS EP eiats_ ; Ai Pe (on A= Cong D¥2) arene) 4 y | | cout <6 "x " ae I cout < e a eee es Pee Cee foc eoeeeeie A cra ueld ener! Pcl SPE lua For(eol = 1; col = 9-C(row-1)+2); cot) Cored Pore accra PS C:\Users\palka\OneDrive\Code Playground\Coder Army\DSA Cee ren enone staan eet nae te Cen ore re ren cere coee PCr aCe) ee o CORN Ea CNS Cc en eS (oe ermeerrstr tree ccm ccg | @ E t 2) Mow 24 =) ————_—_}+— Print Sa BS 9 — exe J “@), Prink Sea Bea) 3 a + ow = “Sw — ie . Code (£00 ae feo Seu no ==) t tan Coat a no, ot) a Cone eee t t - fon Ces =4- col < (2x mul=13 cote} eoeeerr cc’ coup cd "c:\Users\palka\OneDrive\Co Pat Peer en it are eee seed “Problens\" ; if ($2) { get Pattern_3_l.cpp —o Pattern 3.1} ; if ($2)! Cee one H Ree On aS ae corer a aici teed | ee ee oe Se ] lo ar | ie | | ¢ |A Ka TH koe # +9 * mae a x 11 | Nabe | lalla 7 oe oe ae I \ | LI errr oka wat ae 4 oO 42% aes ‘— — am \ __ pS es on (cod = 45 col < (ae) colo) Cout piesa ~ : = : ete eae ; ce ce ae ae ST. J 5) i] Pat int row, col, n; ae a re Pr nT res oC Meas Me LE por aos ETT for(col = 1; col = (2*n)-(2*row);col++){ cad t for(col = 1; col = row; col++){ cout << "* } Conse aces Toa aes ee Ree Co ira for(eal = 1; col < (2+n)-(2#rew);col++) { ena i Meelis F tT fox. eee eT a eae Cora } Coan a es { pac a) 4 — # } > £6. bs ey ov now = 3 710 eo eae Prink 2k now time a Prink S poco & = Zvou Lmwe Pxink % , Sow time Nw = now — 15 \ ar: 2 at fon (nou = on aa q — | See cols) —1-+}—foa lends dy colds. ss et sce a toa bab ua ce all < (2%n)-( 700); cols fl | : — aa Pac Pe Tt eee ee ee i eer acme Ge Pattern ie #include Perce eee eee H int main()| coe Ae Cee ea for(row es i oat eee ee aE Cena i Tl oils for(eol = 1; col = (2*n)-(2*row); col++){ Parag I Varo bia 8 row; col++){ Con ee } Cone MET aG for(row Ft ee Toes eras ioa( eee Me REE Cort i for(col = 1; col = (2*n)-(2*row); col+)f pon ee Salta for(eol = 1; col = row; col++){ cout < "* " si Pera as SN = We Sets L i Note ~ + t, ca | — Code = Diamond aa = —Z Finak ln “olf pettonn, pss = ! | fon (now= 1; Dow £ ins See eia. )tl a x a ~ | __ 7S paca Pre Gack — et oe ‘ale a oe : i ont | LZ. Sook. = . i pat = aNenl 2 Jat) oa ; 1 out as Me a 3 a geek << endl, i ae 12 Second owen half pattem = eee 218 no ——) ft r . L Ast Be aaa only Te ert) Se ee eee een) PROBUS OUTPUT TERNANAL a E Ree etree rots re i (reese Bar eenes enti nn note (onsale oh aa sue See BRO enn st ere ern etre oe ee Pree: a BECO Ne ea Gren he tee ean eer) SO PRE ico Man oun ea Praia) ee rors cater (Con OrCOnne ES ere i ca eer eer ear een Rn ee ener earn rena Creeaten aco) Cana ener Sb eee tT as Sea ANSI er een ea emt Pra Cavan meena rete eee Yaa Se eee eee ee eae) RM os ware as na Cee Cr ores pea caer eee eer re ania Cee re ra et rear } [eestor Caan ener stra Sen sea Perea ed HOMEWORK Day- V1. Advance Pattern Printing Final | Oy = IZ NGS eee tes eae soe ee @PS C:\Users\palka\OneDrive\Code Playground\Coder Army\DSA C++> cd "c:\Us" ate S Sen Cesc eer (acto ean WEN er oe shan che saat as Pa eee cee Ge ce eg techie ier Pere eee Question 1} ; if ($7) { .\Question1 } Lae prayer’ .* Pore et Uns Cac ge a er ee Reena en eat ee con ced | cae a Peco Con for(row E cos Sr OP Eao nd i ForCeol Per reer Pere aan “ Cre arc Cee ene ies Perce Pere eee Poa ueld cae a Perea tn Ca Con for(rom = 1; row = nj row++){ Redes acol ComeCES RETOEnarS pear i acs mec Ste TenTt “ Deere ge a end Cee eee te mee: Meee Recreate (oes ean er Wana eee ere Ta ete eure co Mera este ee esti Mer ioe ees Lorn rs Rete aU SU er Ser or eo Reena ++ Homework\dvance Pattern Problens_day.11> Cee Tee ee a es zi os an é rae nC reece ence rawr gemeveees [Pear ein career tae tir oa oe eee Resear seinen oor tar edi cr went tara omeen rene rots n_Problemsday_11\" ; if ($2) { g++ Question 3.cpp -o Question.3 } ; if [cer SCs gee Eos fener Ty rn 8 D E ee rare ABCOCBA aa oe es eae UN CS Ur RSET or eC een en eet ee enced | tnt rom, col, mj rs ey ee eee oy! nes eer eee Teer aor i fore any ee ey Umer rar no prea ac i ce ee ee ee ea prea a i Pore AG ee Questionacppu x pv @ EM ~ & F #include fee eee eee int mainOfl // Homework Que e an input n from the user int row, col, n; cout << “Enter the n: oo eo fi eA hae ae for(row = 1; row = n; row+){ / Space Print for(col = 1; col (Ciesla Coe Bs VA ee for(col = 1; col row; col++){ cout << "* iH ea een i ttern row-~){ for(col = 1 = (n-row); col+){ cout << + Valera esis for(col = 1; col = row; col++)i Cole) oie ae Bs Cote) SC eed Those 2@@ days are hard and rough but I love hard things and I am prepared with full motivation and energy for challenge SS #Coder Army — THANK YOU #Notur By- Kashish Pal

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy