Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
229 views
C Notes PDF
Srs
Uploaded by
shivangi Singh
AI-enhanced title
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
Download now
Download
Save c notes.pdf For Later
Download
Save
Save c notes.pdf For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
229 views
C Notes PDF
Srs
Uploaded by
shivangi Singh
AI-enhanced title
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
Download now
Download
Save c notes.pdf For Later
Carousel Previous
Carousel Next
Save
Save c notes.pdf For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 198
Search
Fullscreen
2 c Rs 2/00]. Definition of Software ;- A Sluis a collection Sr prgms CSet ob instuctions) which uses the ressny Ur the Hlw components « AS pervthe Experts siw ave classified in 3 categeowe, Ve system alw,, A: Application sis. = §- Internet so. de System slo s— The system slw ts a Slo which does the. ‘Functionall ty for the tH devices, Live printers, mobile, processors --- £te- To develope this System sko we. need o& Three Languages . ty Assembly level language Cotero processor Instruction] a Colanguage C proceclisie Oviented programming] KIRAN SIR 3+ Ct [ object oriented pregiamming NOW we : echnologies System 7 Santosh T: Ws; 9245397245 eor i : [eommand U3 Treberce] Loraphical uses Intesace] Single. Usey Multicese, multi tegk mubdiuses Single Uses: - The processor aan does only one Job at a time 1s called os Single uses, Eg MS-Dos Mult Uses :- Mowe than one user con use. the mashine, oc atime is cabled ag Muisiused Egt- ONIX Multi Tage<- . mor than one (Kesh) job is tating place ara dime is called ay muttitesk, Bgi- in 95/49] 98] NT] 2000 Ime. [2003 | xP] viste-/ #]8 , Andhiod., 105. 2+ Application siw;- Ain App" slo is a slw which clog the functionalities -fhthe business oriented applications.KIRAN SiR now ¥ nolo?! Caer leet Database : Every application slur eauives datalase like dhae, foxpro , oracle ; S6L--- Bk. Programming languages :- AA lang. Coun be used -forthe, communicadion purpose. A computes Lang's will be used te communicate with the user & the Systerns. This Computes languages are, classified in Two categeoves. 1+ Low level longuages « a High Level languages. 1+ Low Level Languages (LL1's): LLU'S ade the Lang's which canbe Easily undeistandable to the Syston. There are System depenclent languages. In this -tuo Lang's are, I+ Machine, lomguage.. a Assembly langusge » Machine languages” - Te ts the fundamental Language tAthe System tb can elvecty con be undlustandable without any translation. Thyeare machine Ovientet Jang's thak ute collection 6 binary o& 4's and os. 3 writ, OMputel Gan anda stanc many denguage withruk érennalasten these ts only 4 deny. Pet ls Binary Aanguage « As the users Preber decimal no's we debine to write the decimal nes but System coll convert Tmo binary nds. The. Compute Meaguring units bits ode. bytes. * Advantages: - 2 1 Aa the Computes lang. isthe machinemcnientel Te cam be tinolanstendalle very Easily R vey Foye Excartion process. a writing 49 machine (ong. dot ar Memory Cun Save, Ee fT Bl 31— 10005 Jeavs month © douDis advantages: 1+ Remembering dogens a> binawy code is not an esay sob a. Rectitying the Evrors & delougging Procey?s a time, Galeing . B. modifying te prgm is nok Eagy. Assembly language i The DA genaation & lang: ts Tmplemented bby the aarembly code, This tang. canbe called as Symbelte language. In oleate remember Easily the prymag Coding be Implementing this lang» In this tang. litt. ty pes or Sybads will be esed! +b design ‘the Prgnng> But-this assembly code can't unclastanciable +o-the ‘System. The assembly code clivectty not understandable -to the Syston So we veruive “Translators, They de Stype. for high Level cocking Ie Abgembley A+ Tnbepreky ——@ . Compiley, Assembler: Zk ts a translator whitch converts the assembly cede até ‘the Machine, code . a sat Advantages: Source witts Easyo unite the prygm Compe to machine dang. witis Easyto tocate & correct the Erovs. Dis advantages - % To leain the. assem bly tang. we need the knowledge @& Hit. High level languages :- HLUS are. the Langs which ave Easy to undeystandable -for the useh. They are usa dependent lung's. The HUs ts © combination # alphabets, cligits & Symbols. Tes caltedk ag Macio statements. Tt 1S Vey Sagy tang. Since eis genoal English lang. » But the System will not understandable this lang's,for this veagon we have Translains, Interpreter. An Tatepretes ts a hanslotor which Converts tom H's tp Machine cone, ag Checking the prgm line by line « KIRAN SIR gi - Sexi ptin Jones Now witH Span ert, ubsentps Santosh Technologies PHP nn eee] Cell: 9246292-Compiles :~ Tt 4s a tyanslatoy which converls the HLL into the machine ede [objectve cede] by checking the wthole pgm a o Rimes Ege CG cet This Translators ave nok a physical components. Thy ade alto setrhoares [system sla. Ney toatat translassr ts Comptia}. Advantages :- 4 ibis Vey Sasy to understandable 4p unite the Prgrnag 70 Huts, * it ts easy to cebu the Panrg Goele. Dis advantages :. * TE takes more memory -to fnplement the applications, * Machine & assembly fang's ate mote eXeicient than HLS. Histon & C-language :- Around tn 1960's the & mast tmp. Pymg fang’s COBOL [ common business Orc (ang-] 48 Commerical aps and FORTRAN [ermal Franslation ] for scieatitic&, Engg. ami, [design launching: developrrent ote fngq. cnlcalatns ~--- £4]. These mary apps con be developed by using this tang. but this fangs can be used Only to develope Speci tte apps. fathis reayon the prgmrs desired to clevelope anew t 4 Pe on NN Dents Rite combined grgra Fg contrib, ee as : [ee} fen JA) fot] ea] ey] The rome of C-l0NG: Ts come am BepL, Chsthe a4 setter) Crtstophes shachy Ken Thompson Cambridge. mid Peds Bre, 1992 [4m the Ren We ate Following ANSI ~c TAmarcan nlectional stand’ Insthue o& C]- we have Ome more ‘Ce; K& R~e [ kenighan & Ritchie]. Chosacterstics 06°C) :- % C% an aid —level Pgrmng fang. % fs wrt, we have low level prgmng larg's in which the System can uncletstard Goaily « €g'- Mico processors . And we have Hus In which “use, can undetsiand Eoutly. . Egi- COBOL, FORTRAN. Ard 6 ig a Combination a Cow leve! high kvel pagmng- Thea’ ik ts callecl oy Mid level prgrnng. tg Ck ett. c-scombined* CC supports 44, opaatrs, 52. Keyworels . & 4 Separators. * C ts an Coge- Sensitive Lang. - Coje-Sensitive means -the lower cose chad & the upper ange chad. hag the oli tte meaning. % Even € statement Ends with an Semicolon C3) x Tec lang Supports Large. St vb- Aibrary Functions, x Cts an fu oriented, procedlite Ovented G structs Oriented prgrng Jong The Source code what we Implemented 7 colang. tk te totally cepencly on tural structures tor-this veason 7b 16 called ay tun! oriented prymag» Deviding the pigm into Small mookules according to FHS operations ts aalled 8 procedure Oriented pignng. A stucture Oriented Prgrang hoy to Sodisty 3 Giteia’s, A+ Seguence ob Steps. 9. Decfsion making 3: Repetetio. Sequence oh steps 3- Executing Every line o& the statement without ignortng any ob the Statements such ype os Prgrong is Sequence & Steps. Decision Making : - Every ime Sequence ste piging 75 not Stitable,thod Hime we use the Cndition Stakements to this Pigg based on the Condition Some Statements will be Executed Some Stotemenk will be ignored - Repetition :. Exeussing the Statewnents move than one time is called as Repetition. Thoda to implement the Repetitions we have —_Tteratione Concept leopings) « A pplications Or C- language :- * C %5 used 40 develope & System sho apps like unit, windows, Linux, Compiles designing - ~- + Ete He otto Used tn development a nary apps do's tke Commercial proclucts % Tees Used th development gs Embedded & mobile. apps - CDMA phones dependy on the — BREW Technolgy. BREW —> Biray Runtime Environment bdneles dleveloped stay with Tava. KIRAN SIR NOW wira Santosh Technolojies Cell: 9245297045* Gomtng chamewors ote alto unitten using Aang + Direct x Coxgocom Lecomponent [Distributed component object model NC++ KIRAN SIR > Now WITH oe Santosh Technologies c Cell: 9246392345 * lang. much Supports geod Fotetacion ustth Hho. By Using c~lowng. we can develope anothes, Prgnang, tangs alyo Aike PHP, mio Sobt . Foundation classes, database prgmng - --- Etc» How 0 corite a C— program t- Alphabets4-2,a-4) Digits Co-7] oo i igmbols L+ > z---] {Prams 7 C-chasacter Set :. A Cocharset consist ob alphabes [ lower& appa], cligits [o-9}% Special Symbols . ToKens:- 4 Token is an small unit of a pigm, Token Consist to Identifiers, ky ~ words» constant, vartables, datatypes ,opetars, & spectal Symbols. Ddenttiers*, Aname which is given HA variables , Constants snaeros-~--- ete PS called af Tclentifies Luse, debined]- [case - 1 Senstie] Keywords Keyword ave the vesewved words in eahich the meaning beady cline! by the compiler. all the Keyworels hast unite a lower cage. According to the Anisz ¢ we have B keyeuovels- actorcling to KGR C we have tt Key 2orelt, Egt- for, do, tnt, goto. enum ~ -~- Ete, L eccty 897. the adeno) . Constants? constant 15 @ value hat doein’é change curing the Execdion - Oe the pigm- constants ole Q-typss . 1s Numesical constant’. Q» characte constants, 2Numerical Constants: The Numdtcal constank ase the numbatype. Thige ale atype . ls Toteger constants &+ Read constants. a Oe the decimal type te Numbers. Thean be @M oy Ove eletrault it ts Onn. Tn blu the decimal nds we donot have any Sepwartors Fnclucteng Comma.C7) eho. B45 9q 8B Layee ~~ BHC. BA64 19 net vented ,beeg 8 comma 1s preienk tm thd value. The MIN-NONge tr the Tntegey constants —B2Ae8-tp ALAC. rare wee te 5 MSI ce se ke ey kt Su higher Orla bit ae vp - 4 tor leagt fee Tep fe [ep oje} a 3 proot 128 ~pleast orniisy pityitid 10000000 = —26 There is No O* Value binanyoode Sin the System. Si ep 0b 9 ete ee 5 2 og Dee oT 28 vf ath RE TT PEED we {1 a en ea -S2368 4 32767 265536 bytes Tes Range 384 oor Tn Tateges Codegeoy, we can algo have octol numbers and Heradecimal no's Te Octol no's cotll be tndicaded by prebia with “0” BS 9456 5 Octal numb [ ot % = % Chae)]- 456 — Decimak nwmbey. 0386 —> Tali no. boos ‘gis pr: in the Volite [not OceL eto ig pr Lrot decimal)The Hexadecimal nds ustll be prebix with “ox” OmIS=16 => 0-4 & A, IB, 12-6. 13-D. 14-E, IS-F Fi ox452 , oxedd onsqa. Here, Alphabets ote not Cage— Sensitive. Rea} Constants : TH real constan's are ogo fractional decimal point no's. it com be BHO by default ik 1s @Ne. &3i- AS 924, 100-09., The. min. range a real constants a4 4 188 ty Bh IEEE 454-+locctiog Point Standard :- (CP xF xa® Single. precision C bias = 124), NGG COS SGeEe pla els ia bbR i= Sign [<—Expooent traction Character Constants :- A chod .cnsint- 25 a L byte chatena keyboard Everything is treakedaya chad. The chax's hos to Enclose, in Single Gutotations (* 7) « KIRAN SIR The. Range of char. constant #5 NOW WITH . ¢ lary. 5 “ only he Santosh Technologies ae ee ee Celi: 9246392345 Fe AE Sa elon ete. T# TE%S O Combtnation ch chov's then Tk Ts called os String Constant. String constants ate always Enclosed 2 double Auotatons c” *). eg Anusha’, “alan? 9641" ste Nariables:- A name which ts a ong computes: memory location ts. catledt @ Navioble Name. The purpose dttre uriableSte store Some data: The icset wil! ofces by the Vorable name & the compiles will acces by the acres. Rules tev declaring a Vartables:- — [resbe toe dala} _ *% The Vaxtable name can be lowes ane, upped. case. and mixed case- * A vosiable name can't bea Keyword - #% A varie name Conbe Alpha numeric chal's. - %* 49 Vesiabe name can't contain any special chos's Except underscore (_). a * A weBlable name can staat with chan ad undeseore bud nok cLigte. Note's The lengih ob tre Vetriale tats cam accept 86m chox's bub the Cmp'ley 2 uot vead only ist 32 chars, 2Fwult Cidentifien) Mange Apple Banana (Wadiable) ¢ consianty (mace) Datatypes '- 4 datatype darribe what type db dato we can stove in a Vadiaulel, Te aly allocaty Some bytes ctr memory tery tre-vantables Dosatypes ade clayified in 3 categeoried. Je prtenary Dedadypes Cprimitive) ( predtebtoed )CBrate). KIRAN SIR 2+ Derived Dosatypes. Now WITH ie 3+ werdebined DatactypeaC%concary). nologies 7 2 + Primary Dosortypes 3- This pimreny datatypes axe the datatype directly thtaackd withthe machine Instructions. Every prtmay datatypes will Suppers * Type modifies", ‘The Type modifiers will alte, the meaning ce datatypes: Thae are 4 types ob Typematit Ie Signed 2+ Shot Bs unsigned 4 lon Gee ae nding bd & Keer) dubaul. eR oy) fi 3 ° when we debined Sgned. type. modifier you are, felling Athe Compiled the higher oveler bit hagto tntenupt by the Sign + eohenever Signed 7s Specified a Santosh Tec! Cell: 924539 signed tlag ts gona ¢5 4325 0 pred Os ve a3 TE the. Signed bik %s gaw, ik is Blo, Hees ATFs S€no., The shor $k Ts more long indicates the bytes ote tmewmony the Shost 1.5 leg bytes & the. long ee te LZ. int CTnteges) CSigned int) Csigned) Cshoxt 2 re owned Specifications ¢ + abgta C6 bits) sige Range 32,163 to 32 fea Deseviplion —-§ Tt accepts the no's sh- decimal type - Tt canbe. QD". €g% Bb, AID, 24, AEZ19~ ~~~ EXC. Mac's ; fo Every datatype we have mocso's -fe-tind out mane fints volued, Min. tot Value + To Atsplouy max. int- wehove a made af, SINT. MAX - To atisploy aminving. we have /NT- MIN.Onsigned int: format Specifications + Sige Range Desaription & Macs * fou a bytes Clb bik) 0 40 66.635 3 TE colll accept only the Tolger ob OY mls, B6U,496u, SUBG U-~--- Etc. OINT- Max. OMNT—MIN. INT 7 onsigned £ SF 240 TITEL. ITO EE fre LT: res¢ Tit 1 ° 1 SAP ey? arate? 2 PF aes Rerars Notet> — Exteinally she nds ane diff. bub inteinally the binary cecley ate Came. "4 4 Long nt 2- Clong) format Specifications? Size Range Dasestpon & Macs tp de A of Ld. 4 bytes (a2 bits) ~alat 463 648 4 a 147 403 HF Te ake accept Integer “type OF claia with more range. BEd, 19672, LONG: MAX LONG — MIN- ~64 432. 2 ~~~ EtC, KIRAN § SiR Now WI Santos! Cell: 924 h Todmoloaes ,OUWOnsigned longs - forma) Specifications 4 aod Size 2 A byte Cz2 bits) fange $ Ot 4 29q 467 Jay Description § Se accept more range sb- B®" nds. &3 2 B6Lu, 467 he, 79634 Lue--- ete Macros OLONG _ max. OLONG — pain. Char Csgned char) :- -foumas Specifications: o) «, sige + dbyte CBbis) Range $ by YOi24 etter! oe i ctay a Chas. € muy! leset descipion Every hag ia the Rehan aches single eutrtociony Ct»). & Ain @,9--- EC. marcas ¢ UCHAR MAX UCHAR MIN. fo Limits. h: Note? ANN The above macs estll be debined +romthe Headley fle
LF & efoLt Size 3 lo bytes C6 bts) Range & = 34 210 oo Seg x 1 Daciptions Oth Fractional point accepls apte 19 decimal pain. &4 © 31g. BUys6 171) 23893UF LE, ~~-- Ete. Macros LOBL ~MAX LOa — MIN. Note? The above. maces ade dlebined the rundet the header Mle
3 Gedaarrhin set We have 4 slonge classes s dataseenene from the RAM , in that 4 “Type! 15 used 4p select 4 Soage class. Defauly we take Yous’, Sige todratey abous shivt Bling bu debauttty shorts Sign indicates +4 A VE bud dehautity 4¥¢ &g:. SB © Inka; M Brokers one. prie-dararype variable, sepatarers, sen ee Same ges short a; ~ ~®© float Kh; // K 1s o Vasiable & type float @ chars, Ae &| => Ant asb,c; // + tokens Yntxs declatation with Yoitfaligation > TNS cha tedlia = tals @ © we 2245; © @ floats = 4-789; Here wf we clidn't anole the float bekove 's' then -br reacling a4 t leat we have wrote tha Value as Se ArTeat 3 othowtse Th treated as cloable. ~ Tht a= 600% s00/a00 3 //valtd t ite Hae *— 1s abotreated ay varialle, BIneN SIR & tntants Santosh Technologie’ % int -at; Cell: 92493392343 % Int Fors I iis keyud // invaltd & Int daz // tavaltd // vexiable conh staat coith nlumexc, % ot 152135 ff fovalid / N0!s pot allowed. % Tok © M03 Mf Spaces not allowed. % Float e+nos df Spectal char's not allowed. Flavors os c/e++ Editors :- we have dt? types ob Edi the Cc. compilers are, TURBO ¢ Bvick c MicRescet ¢ ARTECH ¢ ZORTECH Larricec WATCOM C GREEN Lear Vrain ~-- etc, Every Compiler has Hs own editors called ag TpELntyrated Development Sriermd) DE Contains + tee at petems & Jobs. 1. @ditoy C Typing / editing] a+ Debugger L Removal 3b evi] 3+ preprocessor, A+ Compiles Cc 49 machine]. 5+ Linke, tos & prey Editor hos Fts own compilers. Some abThstallation o Windews-% and Higher Versions cs TORBO-cz- ‘ Tuvbo-c editor #s develope under pup 8086 CiKbit > Wincows—F 64 bit :- Select Tarboc 3-05---> Tuvboc+ Exe % Tastall, windows - 32 bit: % st Copy -the slew th any : Ihe Cor D or € chrive. [42h sume path] % Open the folder & select install ere. * press Enter KIRAN SIR % Enter the Source drive to ue: E NOW wiTH X press Entes Santosh Technologies % €2\ te\ba\te.exe, Cell: 9246392345 Iindows XP !- Turbo CH V-8:0 > Setup —> Run Tien automatically tnstalled) « tow to write a C~pgm:- Algortthms Flow charts Prgrmng Lang's beat ve Saran = Jl ed “EL "Ny Mend eb matncy The Pigenng tong. will be Executed from the stmt as maint). The maine) Stope Contains Set o& Stmts+ The maine» will Execute the prgm, Tn the Maine) Scope 2 blocks cam be -takes place, 1+ Declaration block & Exeawtion block The Declaration bleck we declate the yastabla once the declatation ts fintsh we have the Bxeeutable sins. lo Statements :- every prgrng lang. contains “Flo stmis. This stmiy 4s cused to caphate tHe clata trom the ‘Ip device called ay Keyboaid and display the elp on the screen by using olp stmt. Th Crlang the Tlo Stmts are clayitied In 2 categerioes frrmatied tio & 1 Onformatted slo» The -tornabted Tlo can Capture &dtsplay any type ab datas Me Unterrmntted ‘TIO can cape only Spechfre type of data» In clang. The =lo stmis are called ay -functons. PULThpat Outpat -towmatted” tlo Datatype] Input foutpat nt — |scanée> [prinbeer float — fscante> | print.) Chas, [Scaméc) |Prinetey, String fscanfey jprntee> 4 point-Fe ) oe Syotar dt print Case defined string" 5 The fixst Syptan dr the print) 1s used “to dtsplay -the uses detined strmis on the Scteen. The rest Syntax dx print#©? contains only one exgument withtn the clouble auotesc"" 1). whatever the Steals we are debiring 76 ts collection ot characters. Mofinc) { print c! welcome To 65 s o-btes Uuvifiog the pig, the pgm has to comptle & Execute. fey Compilation press “ALT+Pa To sun the pgm “cree ry, Fa only #8 Honing. Clescre>; te make -b cleat the screen belore Exeustion ob the pigm ue use, AFA cleasing the screen 7 mares the Censor te bling in fist row first colomn. “To.see the olp on the screen press * ALTH ES” Ci works only tn Taxtoc), Tothe above pigm the olp not tn-the cee, ode make ‘the olp In bebter uny OF Rey's, “Cl supports Escape Seanences . Escape Sequerces?- . Thorde to cesgn the olp ina preboimatied Tetts we we Ssape seeuences in Crlarge The Escape Sequences mostly will be used to the olp smb o& printf). ALL the. escape sequences will be debined with Backslashr) -foliowed the chad. All-the Escape. seauences Hl) be deblacd uel any ewhete *the- Pee ,wthin the" ". But mostly “they used et thes, begining 3 Sndkieg of the$0 thy axe called 05 “Boundartes or “delimeterss “\n Bhewline chayactes] t- It makes the curser tp Bink tn “the next Sine Main) i A print Cweleame io in") 5 Olps- + welcome-to c pintee TE 1S pepsin”), Teis Pop's ipitotec” welcome-fo C\n Tk ts pops"; Sean PrHOEEC" \avnin xa welcome To ¢ aoe W's ; 1 xR wellome TO CR. 3 “\t" (Tabl:- The-tab coill makesto move frame. by-frame not by chas's. Moinc? 4 paint Chagall), printt Cliaa4\t 5+ Bus cursorat neat -freone protk Closaytslte"; C56 S achar's chars, KIRAN SIR NOW WITH Perr > Santosh Technologies Cell: 9246392345 “\b" LBackspace}:— The Backspace ufll be usel fn clevelopment. c- passuod legis, Moline) qt fl na 1235678 Print? Claz4\b 5648"), iagasey pint? c'iaaassaa\bls a cane ‘\ B pints Cina4ib \b sere "9: princec! aaarb§ £43") The Backspace Move back One. postion. ME: asGeas. \2" LRetasn Comiage Retum] :~ The \t makes -to move phe Cusser 09 the Lume ww 06 the masnt) fi AS postion [48% cole my). le: Anu & print (And), aw PinkeC anal yc: a Printtte" Anu\rnlagti; AAG Ssaac Program for Ecmpe Seauencey :- Maine» Olp:: ; b- Cast printé C'\nab!); a iar printéc" \bsi")s hat printt C\y hat"); a By ustng pft> Ts possible to display any chor on the screen: Tf any chat not displaying use the Backslash & followed the chas tt dUsplay that chavls, asec? 1 clusewed Op: welcome te “c"; prc'welcome ta \Yo\" 93 ;, , First ua ave getting Error bron complletetondt undetenet while thee EPEC WMD 5 op \\y [ts rospace atthe enteh te LQ seuble ucts] 1 Sue metnleh Gpace, je: : we PPO: oes pace, ies PECK RPECNDS opps 2 Cc tsa procadine Ovented\ Prgenng & function Oriented): MW whenever we break the stmt we the “\' Fh indication ot the shm-islontinuiy \n —>Newline cha \t —> tobchay \b -> backspace Ne Castiage Ret KIRAN SIR Wee NOW WiTH V>\ Santosh Technologies \o ~ > Null chay Cell: 9249392345 \Q alert Sound \¥ -> form feed Nh > Hdiigantal W ~ vetticat Ole: Cisa Procedure. oriented Prgeagh "Orica, Note:- Every éstape Seautence is a chad 8S A byte of memow Space.* &y PAM i— Mainc) i Ms PC Relio\n'y, EC! welcomal\\Insanthosh'): PFC welromeWNI\n santas. PFC welcome\bib Helier): IR PFC weteome Iblb tell!) « KIRAN S oe ce teneaeg Santosh Tect moloa'e PEC" weleome Hello: coll: 99492923 PE Cellet wetcome’); *& maine) a ne Escape\s cliscrer; Ga. PFCeseape\Inln Sequencer): gether: 4 Getchos3- Suspend fe a chile, until the uses press any Key on the. Keyboard. The Actiol pupose o> geicht> fun” ro Captute Nondasa Keys. GACH 7S coating 48.004 chat “type yp by using getchc) 79 the goure cecle then we need Notte He shenevtes the compiler read the geth) ste Te maker the pigm “fo ALTAP 40 gek the ofp attey compilation by wiinggeiche we evillaccer, date nay (26-9, ents---) Rago sion dada CF Fo de Ty, page unl down) Keyse Dy Wing guichett) weeny react datarey. gechecy read both aecia L Nondala RY tnd getehe sie lebteh, 3 BEd othe kine , Comments:— — ushenever Ff You wantte provide a clocumentation for the Prgm we con write the clocementation by placing anomndls. Whectéve, the StI, we place ingmeG, Thee will be Ygneved by the. compiler They aie &typy Be Gots IeSmgle. Jtne cmt Ci) ae multiline mnt CA *1) Ying Notes Clana doesnt Supper Nested emi. cee 2. Ak print cltello?)- 7% pe c'telio’y; OP. wecom get errors bigg Bt Nerle! amis, PE CAnu ds / PE CHal"); x 7 iOwpaint#o-Siyntan -22— prathCuserdefined shits with owns Spectthantion’ ag. o1g2,--- ys The Seyntan vb the peO used to clisplay any type ol ap on the Console Swen The ang's aun be. acteptect Minty Net, entth formas Specttreations , The. aig's can be vatinble ype, constant nds & &xpreitions, % printt (Arad Bred", 10,28) 3 “at B20" Olpt- AL 10 Bt20 ‘akeinally takes ag collection we char. x pe Cheba “o20)- “io20"” ole. p20 HPF Cll od", 00, <1: ae KIRAN SIR : 100,-5: Now wity ole: ~ oor. Santosh Technologies 5 PEC Md shel", 190,200,208): Cell: 9215299345 O1R 100.200 PPC efad od sled 6 10,20) Op! 1080 av x Maing) olp. i as al ae arses pecioes'>: a pela 442: ve PEC shck 243): PEC Ina 43 = thas rt gekcho : “tapenion ey Sean) i- rey. Sant) %5 an Ip Rim eahich com caphoe ang “ype wo data Fr0rn the Key ~boatd. we cam accept tif's -for the Vastonies 7% 2 woxst '* ob the Hime a- Vodiable declaration & Initialization, intas83 asBy 2) Byusing srantcy at the Hime at Exeuction. The advantage by Scamtl) fun? eveay time the \alues o6- the \odially an be change.Syntaxs= Scant ("-fommat Specifications! Sawgt, & a2, ---- - Sago); The Zankl) vb the stag Fe wPthIn the Wo only contasng, format Spe oi Freextiaey, Remmatcing Oy ote ong datatype must be debine with @ ine cate, adrs (Svvaelery | The cigs must be Varfable type only. (Write a prgm +0 accept g nds find the sum o& ands? Maoin¢ ) 7 weclosastion . nt Aon, Sum 5 chsert! MU Toputs pe cléntesthe values 3 ")- SFC" shal pdm £0): yy logit e sam = 4+; Mutpat Oe: Ph Cisum ee 2 nds +h", Sum); geleht); tee %- Nt = MtE+InE Float ~ leat +-float woorks-er only nds. thot = Pt ttloas ob tye ones byes coil dominate, frvaltd = chat tchey Tracing Ctr the pgm: Toute « ph ibaicthingsocbare-te anole ts, B+ Typeste pAgm Cnt eSoad—~ ) Alege, KIRAN SiR Now wiry San i: ay ae Technologies 924 3392345 Enter the values 34 2 6a Sumtb- & no's 5. Lovignmers aliiiyy dane eith Right ties. “a A pigm cam be Trace Mneby line 7 understand more clearly by pressing Fy. when we tracing the pigns we can watch the variables volues by “Add wotch”” Centrl+ Fa). it the add watch nok visible then press” Fe", Op 1s Restricted ey 2 decimal points . “Chel Fil” Cplace the cursor af Reasire! word). foots. Help i= Ciseristt) 1GUyaad Maine? i ope ‘Int a5 32168 Floor; — 2-168 - 000000 8; 32568. ae aaterH Fa BETH iodoudle int= tot riqgt Pw BRIT Hy | Be 58 16F HFS sist alps Lt herd ents Pe 32164-0417 "S" gaee+000000 PRC abd MP opud,a,fasd; NHS —> 38968 etch 5 KIRAN SIR 4 NOW WITH Santosh Technologies orden) wea iiect p Cell: 9249392345 = stdlorh > Fie TMlsion Macro ras . foldername Preprocessor clivectds (to.substitute prgm cok) - whenever if we ode using predefined furs tn the pigen we have to debine that ‘elated heads fle, inthe Pigm by using “geTnclude” preprocessor alisecttve « This ‘nc makes the file contents tp be added inthe pym. what EVvex the sims Starts with HE Tiyane called 03 preprcessor divectives- The Job th the preprocessor dectie 75% Substitute the prgm code. Cc. plactng the heade, file ts optional indhe °c , but Vt ts mandectorg TBettarto ptace in tiny domguage.}. [i crt optenal tog cts sly checks be cote stycheca), Debugging the program :- thenever a pgm 7s take 7 place, a prym bas to deloug when de bugging is taken place -thegone diffe types sb Eris will occurs, Differences blo Exroys, Bugs & warnings ¢~ Exsox3- It ts nothtng but mistakes 4n the pgmng Jarguoge These Bros abe Srtypes , I Syren Evers Be Rumttme & Execustion Errors , an"scPr! a. logicak Errors 1 Syntax Exvors :- Syntax means the correct way O “grammar” ot uniting aomd & Saies ve cmos , toclucttag all the prope options & command Line stmis. Whenveds Hf we ot follow the cule, ot the. piging tangs this Syntax errmis a be fosed. ‘This Evrors can Basily can entity ky the pymr. B93, + eot)] Clearly show that belp wtih Dine no. Sg! 5 missing, writing the Key wool, tn Upper Coe, - ~~ ctes FS 5-10 Helpwhatts the Crete 9 Total detatls of roy.a logical Evvors> Semantics meant the logical meaning ob a stmnt » Sepotte from the grammatioa Structure. The logical mistakes will not Felentitica by the System, Hs purely mistake by the user. EQ). tor Calculating the Wet Salay ctr an Employee the formula ts, Net salary = Baste Saleny + Allowances ©) Deductions, But through oversight, Nek Salary = Baste Satay + Allowances Deductions - iY Orie clare bse legal er) 3+ Runtime Evsors C Exectution Byrors) + - whenever the user poy axvong Tp's ag valuer, this runtime errors wil] occurs. when wuntime Evers ts occur the compiles afl take the control & Yaises a precledine! Snot msgs « TBis typecbs conceptrs Called ag Syyor handling. [dear Soppwt cxsptig fentig) €q: qivided po. with geto, Fiacling the S2-100t HR © nds - --- BH) There ts @ chones ob “Linker Ervets” can be bakesplace. +3 completect. This Bugs Bust Bug ufll be take place abte\ the mors ts comp! will be, vatsed by the Testieg team . So. Bug * Scli#¥- when we bes Warnings:. coheneves if you bdame the simi, the stmt cloen'e having any meaning ad thot mes, wodnings will be yolse. 43 @- In place os Sumaath; Wve uitten atby Th wise; a warning 03 Code has No ebbect+ Cnternal Execution st C~program 2 - The Tnteinol Exeaction ab C-prgm will bakexplace on 4 stages. Text Program: The 45* stage ot the C-pigm fs the tex pigin IE contains not- only’sc! pram, Lt contains predebined “su! Filer, user debined 2 Supporting file- So, the ‘ei pigm 1s a combination tr high lee! Sang & mac flong. ts Sabre or Stage - ee paca ts.0 astage ste curd prgm the hb tirthe preprociin’ ‘replace allthe macws Ggenmate a file with an Extension ok ‘et [*trstat], eohtcheonlairs” pavely only the HLL+ Since the compile, tan understand only HLL's, TRIS ef . File will Submit to the mpile,. -Compiler t- The Compiles euill vecieve TM code with HLL Eve ins? os the HLL ts veplaced with the apembly cede ob the C-campiles Rgeneate a étle withan Extension o& “sasm’. This assembly pym will be Converted inte the objective code ¢ by the ‘apembles” translatd Fionn the. Compiler we get the file 0 Sobj" When we press ALT+E4 , the objective file is genetated . Th7s File cay!t been Fakes place when there 75a Syntax enors Linker:- The Job ote the LMke accepting tha yous object cece WEthe System Ubrowy fur's obscode. Te lenky both the tle i# thete 1s no Linke Brrors then Execubve file will be genetated with an Extension ob “séxt’ file - This ile will be genetated when you press FF Clinsing) Option. Same e KIRAN SIR NOW WITH Santosh Technologies Cell: 9255392345 ae i Ke, [stm- ene }—sfloacles- CPO] exe File witha havieg the Source code the prgr qn Execute The advantage ot ~ TH get the Backup file press Fa morethan Oneg. [ie press Fa dime file will be Sawa, then prea again backup will be created, Backuphilers Gand cfothe Scurte-file. if wt lse Sime then tyusing sumbaX we will manage] C- olp-file 7S a plattom cdependew. C~Pxgm fs portable. Dos Tuxboc. exe oy WOIKS on Das/windows, tniafinar eout Gere) (TE don't worn )Operators: A opetator 18 a spectal symbe) which uotll be Manfpuloed on Operands. S31, a © b~opsend Cy epaate Fn clang thee are & calegeorier ob operators ave exPsted. 1+ Binary Categeonry 8. Unary Cateogeory: The Binary opoators are the opelatrs uohich will ¢ Manipulated on 2 opetancts + £9:- atbs The unary opaatos are the opeators which will be manipulated on Single opetanct. & -as whenever opetators ave, considering cotth an Expression we have Te give the prio Hig sb the opaaters & solve the €xpyestions. What is an Expression :- The Sequence v& optatos & operands that yediucey to Single value atte, @uatuation zs called an Sypresion, &- GKC24D-B => 6FCS-5 = BOSH when we solving this Expressions boxed on the prfovities Tt hoate takesplace Sometime; Some operators upill have. the. Same. priority. then we follow ayocfasivity . They ve a Types |= Lebto Right Clebt onnoctativig) 2: Right to lest C Right Auociatie]. Cotegeoy Opeertors : Associatturty bert Cc) -E 3 —~——> I y [Hance subscript PoInECATe, Member accent, Lebt 7 Right. unary b~ = tt/-- GH, Sizect tyront] Right to Lest Not Seay mines bey PetY sree aot Mi Ceropheme ims play fin wen rh Antthmeite pa ia fo C Remaindes) Lebt to Right oe LOR Brheise 2% CAebt shift Lior SS CRight shife) LAR < I >= Relosiona! ——ioitnan_4iton greta tam gather a d= Nok equal'te. y Pe eta eee RE Brhwrse Exctuseok 1 Bho ofdogical QR Clogicat. And) L4oR 1} Clegicat on) Log Congitone! a: Right- to Lebe Teanaryopeath 7 ai hae reeaerarea eae ae ‘Assignment Ee Eknu Fhe ps we een an amide comma, , Lie H+ /e- Post Tncrerment elec verrons Right to Lest. Antthmette t- Expression od bt Expression —owtpuk siz & —-&+d00000 4b pa 2 als © 0+ 000600 Ah 5 a Soleo 2 Rs 700000 Hye so =a. Leonsider Aumescctth Sige} 300) 500 © +4 00000 ~450)0 5 ~2 B0/a, 2 26500000 Fole % ° Tht > 0 +e a0 Favole L denominated diddt contasiny Floesing vases Note Mocs operated doesn!¢ accept. floating point nds. Ht we ant Fo Implem ‘Floating pt- ds #8 mocks opuacteh we com use @ preclebined function Frmade % WAP accept a 4-digit no. display the no. in yeverse. order? atk include
dk include < conto» h> - a= ano; [18 ae 2= aofolo; If T89110=8 ink 0,5 peeled ar lle chery; azafios Me PFC" ented the values"). pkela"ary steohd" Ra); 111826 getche; Mlogic ‘% ofp: 6284. SQ eotO Ip b pec ond 92216 a= alto; Hf 7§2é|0= 78> KE Aofetds (( Tr PEC Molec 12 KIRAN SIR NOW wir Sar.cocis Technologies Celi 2343pile KIRAN SIR Now WITH o=b<=3s Santosh Techno babes Cell: 9245°9- Jogies 43 4 PRC inetd -etedettorb +10): & Metne* WAP accept a 4 digit no- find the Sum oi the 4 digits? Matnc) t vo fat 6um,a.sumeos Pec! Enter tourdigit no"); SHC", Bnamy A= numep io; Sum Sum+ts Aur s numlios A= NUM dfei0+ Sums sum4n! a Aum = numlies A= numes lo; Sum esumrz ; Bumanumed 7 uM = aumfio; _ Sum =Suma-num PE c'cum ote sled numba ts", sum?! Gerehery% Find wut Expression: Flo c, $= 2/a005 C2519 *CF-32); € = 619.0% CF-30; Cz CR-32)% 5/93 * write a prgm accept an ameunt Th wpecs ind out the denominaiersin iods,sds ~ & ids and display the denominators. Hhinclude < stdio-h> apinclude < conio-h> Maotne ) Sint num , sum; PEC" enteythe value!) ; St Coma, nam) Num = num ef 1000 . KIR Num = nam/jo0: i oN S Aum = sum num/io : Santosh Technology Qum = numslsioo: ells 994539, 09° num = pum|ico: ae Dum = Aum o/+105 num = num fio: sum = Sum+num; PEC" value 7s", Sum); x. %- WAP Accept & var. value & Swap the Var-valuey Main ¢) e it be 20.1 ‘nk O=20, b=30. temp, S sq bel | ac2 bo clsscre); ass be | Arq ob) sted", Gajkby,| A=a+b; | azaxb; | b= catb)- (a= Son . b=a-b; b=alb; oe a =a; b= temp; PH Clid «fed ", Ba, bb»; PECIABTA swaping at sfd bt shd'ya,b): 4 Ae — accept oo Find the Sum ar 27dz lagtetigre » —_~_L"og WAP accept 3 nds Swop the 3 Var Value? Magacy { nt a=30,b=20,C=10; Pte" old ted", da bbc), Osasbre aza-b-c: a-b~c: be a-bc phcl'apter swaping a2 dsb afd, C2 od "abcd; 3 KIRAN SIR Maine) wow WITH a Santosh Vec int a= 300% 300] 3003, Cell: 9245592342 PEC od" ad; 4 oe “Tinbo ¢ > MP. B086C 1ébieD [o-65525] > 300x800 - 40000 ~~ 300 30 = 40000 326+ 65536 94.46 $200 = 81. wehone atypa dh memnig, will be toks place , Compile Hme memoy & Reo cHime memories. Tats Run dime. memories asill be changes clepency on the bit MP. TPE Is an [6 bit edits LiKe Tubo-c, we have maz tua space 65/536 [07 E55an|. TEAS Be-biE Bdlts Ithe Bopland .- gic, wehave millions of ‘unspate. The above prgm ue ae Rxewating on U6 bie ‘Turbe-c the Expression BO 40300 Fs 90/006. HRS mut ob- Run Space. So, the Compiles make you to reduce uottbtn the range by Subshacting “from ‘the. Run Space". Then clevicle by 300 teaseto 4. — 65526 2-0 3. Meine) Eo 4 keep itor me8 Tok a» Avot 800/200 5 toe by peer “ges scons Pt Chal sea arb): |] 124, BOO Hae, 40000 TS wsfihin UNspace bus not in vange ob He range a Sgned nt,Maine) _ t ” pbe'chal” 300%200/100 3-55 & % meine) d Int A= 32000+1536", pt C'sha",a>;[/-g21000 4 % Matnt? d dong a= 32167: pe Cid, 92)/- 327168 & %& maine? t long a= 656364300 5 Pb Cole); f300 4 Relational Opeiartors :- KIRAN SIR NOW WITH . Santesh Technolosias ates Cells 9247292343 The Relational expression ts take place. by a vatrd com bination of numeric. Valls, ourmeste ensints, & velational & Satatity opdarers. “The Relational opetains always rehnns ithe 430. TF the conclition fs Satfsfied . i-e; Non-Ze0, TH rehansd- tf the conelition ts BA, Fe vetans "Zero", %. Molo) a= 455; fou? Fate 4 a a=l0==0, | 1CT) Zoo a =302: /a0r) ee tne PH" sled" ad; A=lo>; invalid PRC’, 524); /loceJa= 61>8; /] 4cr) 4X a=61=65 /loct) A= >4)+ (5243/2. Q~ D>g>3n2>1 >0>-15 //4(r) a=5>4-+5>43 [oe samt S40 * Maint) tat K=305 . 4o PE Usha «led hd" K2530, k= 40, K!Rel > 4. abd eed", abs PECs aby x dlisploy is -from Ltr & dataflow Mto Stack Ps Right fo lebt. Fas Ame PHLSE we ave only ee actnsny 6; Rink, mak depend onthe eptahe auc’) 3 Mofnc) t M , a SPC Moled ood", Lea,bI5 c ind", 2,2); Fa PD No asl a tat a=\,b=27 PECs vd bs och, abr: At 2 eb PEC" at oA bt eed, a, avo! fi 3 PEC as ahd bt ond, atb, ax, ays 77 4 abby 53 4 <— ent Logical Opaates *, The logical Eypression is a vad Combination vr ligical values, Variables & operates The logical operatas can be combined awith relational fxpressions. Noel) cat on C1 A] B BIR 0 KIRAN SIR I ww WITH re chnologie ies Santosh Teor 3 Cell: 924939? A= B74 && 4333 //4 Lg iss “According +0 ther IB opucctch b-tore, conclition ts dissatisfied te doen't check the Remaining Expressions . Besording te the OR opelated bebe aonclition ts Sadfstieok then Remaining Conditions estll noe check. aes M4, the both Valugale nongelo 50. olpisd. vost O=4 N05 /) A= 5>4 && 5710; /16 A=Hr4|| s>105 ]1) = IF % BA 3s Ih A= I+ C2kh27+33 1S- as éllos Ha A= 6>6 i] 5753 /Jo Ua=14 silo G a aelasz io ~ as t-tos/lo a=|-39; /lo ~28: flo ie KIRAN SIR o=14; Mo NOW WITH aslo/! Santosh Technologies > 123283 //0 Cell: 9246392345 ae | Hs23y; fd Sigeds Opeartor:- The Sigectr Opoatos 1s used t Estimate. the Sige & the data- type or vaatables, -funls--- ete. The Sigeol Opocios always veturns an Integelake *% aktnclude climitseh> ait Tnducle
eatin) L A double So ole: pec sigedh Tategert ohd \n’, Sigeot (In) 5 Sige th Fategas @ “ e . Y phe sige ot integers diel Ya", sigest CHloat))- Sigete Heat 34 PEC" Sige cbr S % aed", Sigette 65): eee es PFC obd \n!, cigeot Cchay)): prea ne man. Totege 332767 : =gch & elec \n"", INT-MAX): MBx + float ¢ 3-40282 e435. PHC! man- Flood 3 eG \n", FLT- Max) S : gaehiy, &. %- Maint) jane asa co : eS serie Pk choked shel ated shh «hd spat", Sigetlr 45, SBRCW A, Sgerb S, Sinerbe 60, Sgcob (327168), Sach 3278) Sigecle- C0234), Wise b cm. aateas EM roe . cece dosatype the Sgeth opaat\ have Gracker ts not Mmandatoy bur “hs clatatypey, 3 Maine) 15 Mnust-& Bhouldl - pe C'olots ofecy", Seok C1446), Seth Beats 3 4 Pree Ole. $ AS Sablon A64= 8468 9# Moiac) 4 chad aries Float cid: PFC" shirelot ciou", sigedts Cath), Sigeti-Cbt0?, SiBedlr Cord) 4. oP t ag Type Casting: . Converting 4m one dedatype to anothes datatype #5 called as Type casting Thyale 2 typas ls Tmplicte Be 2. Explic?e Be Implicit 7 cz — The Compiles Tesele- will convert Amonetype 10 anothe, type Stet type ob casting is Smpiectt Tee. * maine) Xy Explicit TC. - TP the compiler unable to conus then the Used cxplrcitty Aes Py convet 4m me type fe anothe, type ts called og Expl cht TC. * Bont) yeine tntassy b2 Hload w0; wo = Cfloat)alo; d ttars bez Float ZHOs wos alo, pec’ont", 2u0):fI2-0n000 Pt C'bfot", rue: /Ja-sov0e00 gechoy; gether; y y, KIRAN SIR Now wit Apter eres Santosh Technologi . santos ecnnologies __ Nadsneme = Ceatatype) exprasion "C311 9946392345 Sei- B26 1415 /] Splice re © Tat Mme, stot, Heat avg Oe = M+mMatms; _ ang tok (366 7 - 3a jl eC, Ng s tot |aey JAssignment Operartors : - a0 ¢ Assignenent updation opeatoy Tok ase, Tnvase: sayy OPEL. , sopiatey. spent as6: nNum= nur) io; Nun J Io; SUM Bum Mumejeio;, Sum 4 snumisio; ‘eps Ropactor s Modulus Opeiadoy doenlt work with -Hoading paint values . 7 Maint) brows kr 3 A. plata Ait! Sone, row SIR asatl: (updated Curtosh Technolog; “ ‘ells NClogia. PEC nad ells 82433999705 ates Mapdodedl a PFC \n 4 ads arty 1] not updated . pt Cobd wi ar PE Cobh in" atid: PR Ohba ay, OP 61787 gocher: 4 Note:. The updatable stmis in the memory locations, a=at; atl) atts +tar a--5 --a: Thovement /decrement Operators — ‘Tings to note z— Att, The Result t the Expression 1s “the Criginal Value t& ‘a! &gi- aas Ate: 5 \ B+ 440, The Result tb the Expression is the TA value ab’ €gi- aes +ta=6- 3: Q--1 The Regult o& the. Expression isthe oviginal value ga. 6. asbs a-- 255At "a, The Result ob the Eapremion fs the ed volte o& a. &- a=S5 ~-acgs Types 7 ‘Single. argument + K. Maine» 1 nt 226; clrsereys 017. stemoyboado” Pte value t- 2% ofa in", x45 5 6 PRM Vale Ob 23 ofA Ina) J EO & phe Value O22 oa Way x PFC" Value tb x1 ed \n", HOT PEC Value daz eid iol" xe495 I) 5° 6 gecho: Type—I with Eypreysians 3 - Maint) 4 Fnt as Q=1; elyscyl>; 2 aw Syn bea pk CinshaY, 440 SYA x41); /Jo4. Pn shel, Fx GIL has Ie PEC’ \n apd", gw hg ee, ig Pore vneled", HG wg tI 'e Poin", aby Pee Ee hos Is Pet voakst, oT AE aR; a getchor; 4. The. Recognigation ob typed. , tts atwouy, ufthin the pafntt (7 whth KIRAN SiR NOW WITH . Santosh Technologies Cell: 9249392343 Typeni- Type-2 ao wstthin the pets butte hag more than 4 aige Heche Include 4stdto. b> Magnt > $NeszeGs PRO hk thd ald, abk EHR RD? Y “RZType-® with fapressions t- b [=] ttez atts! Void maine) brea t1a23 a n-beL PEC in ohd ods ta *bee y att + +4095 // 6 ae WRE Vals Q=b=2; PEC \nehd ond", a %t4b » att — --bd5 /] 40) ‘
—_ KIRAN SIR 5 oe Now wiTH PEC Yrend 2 etd’ mg); [166 Santosh Technoloies %. Cell: 92.3 5 &~ Maine t Ink a=) bs b= Att + atts peas thd bt *hd"a4b? [Jae * Maine) L int 0-5) b; betta + +taz rene thd br fd Abi MANE‘ + b= tia tate, MHI> barons Gia} eo Xe ba att + +40; Ize b= a4 +40 & 48 ® beatt + --ata-4 05/520 Fy] bzat - potest tte YS 5 88 © Mainc) 1 tnt aztob; a. & classe; [= beat + 44a; bratt 2 Ha; PEC olad oleh sd +hd", by A+ /a,-+4005 b= at ta; aed or aa is ar %& Maint) L tnt u=5-Y=4, 2-34 PP Clie ed ya old B= ofd Vn x.y.a)- 4=-45 + a5: Ae Yr- ttt PEC a od Yoo groed \n") YR 4 % Mofni> Nt 8, 125 Y= 10,24 bea; chery; Be att ye bla; Pre' oh", a2: Mho & KIRAN SIR NOW WITH Santosh Technotc Fie: Cell: 9245392: & Bast pt Bayer 224 YDT BT co Gres Beye baer * De A a & = att ~ —yxbla 3 Be nto Held uty S- “NB © S- 22/4. 352-8210 VvCC Thicvement [decrement opetaters wlth logic AND GOR Opearters : - Cc According “o-tne OR opaater, bebore conditton 1s satfstied there ts no need to check the next conelition . ‘Peconling cto the AND opaator, ebore condition 7s dissatisfied! there 1s 10 Need to check + Matnc) Tht abc; clrsert b=caL az +4boi||+tO6 PEC aed elec otek") ats Bic.) y ee KIRAN SIR 3 NOW wiTH es +4b>2 |]44c51; |} 122 Santosh Technoloties cel, 39 A= +4bsl && +4ets |p 22 Az +4+baQau +4C>h [loot becedel; O= +rbsI |] tte51&y +4d51; Mi A= &tb>1)]] Geer hh+edoy); Jf 21) a= G@+b>1 || +4051) && ¢4d>1- 212. Comma, Opextor :- & Most) + Mosc) d into; d A= (342, ~5)12d;, Tata; 7 A=3t2,-F 125 PEC" oled", a; ff 2 gehts; Pi-Celd "1a; [IF and gives warning 03 Code has no Ebbect- % f gechtr; sfoabbeck comma we have to take values fn () 2 NbINC) 4, intay O€ = loh2 e@n0x)2. eltserta; = loH2=120 A= 10; OX a lo+27 Por"ofocl a); /f20 4Misallineous Concepts s- As WHT Opaators rethums a. yale Stonilarly a tun alo retury a vale, bub ecieving that value %s optional. fey Suppose a ptt) not only Atsplay the ofp. Fe ako vetuns avalue. 4s wei-T, prt? accepts exruy 0+ 6lr ang's but Tb return, The 486 arg. values. es with athe “ "Cabta Substituting). SEO) also vetuony Po-th args with in the “bub only the format Speci froations. %&+ Maint) inka; ecut gn 2= pk C! Hellorid, 1003 // Hello1oo © pel Hello IsflHello PEC stdin pt Cleled" 495 1/4 gechoy; KIRAN SiR 4 Ss: NOW wiry oa eae antosh Technoloyieg 4 Cell: a PFCs BE Hell"; Helos 9245292345 4 = peC'hd", pect setlo!!d)s fat pe Choled") pe Cold slabs 4 10,20); // Jo aoht4 %. Moin) dana; clysexty; “ G2 ps ¢! Hatoled Kiron”, pe c'se2"))-l] Halgnoan ae "a3 > > Op:. SeLstezaxtxang HH FH Incluclecstdliorh> maine ) L tnt arbie; A= pt Cuelcome Santhosh”):/] welcome Santosh bese CMopd oped "Segre l] avetaues ‘retary de Chee, 26 1 tly, Herbed values are 2030 PRC Ve od steak poh “Var bieds/] 1542120 a isnclude
, main { pct (noledl lack lad 7095 21023 |] 3% 100 BO Tabarbicy uy bec =t00/ ( D too pre nad obd ded2a, bie); I BV 100 a= PEC weltome Somtesh sh’, PEC 'Hetlo ewan) ;f] Hello Kisan welcome Sartoshit OpptConsd oe soctind 4, seclold wid 4 bg arbrf\n214fo0 (00 Tl entatd values ore 30 30Control Struchivess— Upto “ight now we are tplementing Seauence ob prgmng tr thrs Every line OL the stmt, Tm this Every stmb fs Exedsedt step by Step any Stmb wlll nok be Ignore. Tn orclex +o Ignore. some ot- the sims at the -Hme ob Szecution we need ‘te Tmplement control Shuchne pigmng- in thts prgmng. basedon the Conclitions some sts twill Executed & Some Stmts wlll nok Executed. Control Structures Dectslon icing Looptngs GéneltHtonal stmis ( Skeattons) “Ternary opuatd Recess eee Stok ae 0 onal controlled Sims Aree ‘obyy controlled stmt Nested tf &g.- for, while crutch Ext controlled stm. &q - dowhile “OP Condi tonal uncontrolled stig Eq:- breads, continue, endte) Texnary Opeatr:- 4 Termany opaatos it uses 2 Spectal symbols “Zand s" Dectsion Making ;- Hasse Ht check the conclition, Tf the condition ¥$ SatisHed then asters the"? whas Eve the stmt 1S pr ine: Caeautedt. 1 the conclition 1s not satisfied pastes vhe’! Mark Wwhak Eve the Stn Ts pr. le: Created. Syntart- (cond) 2 stmea 3 Stmt2 5 Fa EHheA ob the case only one sim Is Execute, * WAP accept a ne. tind OF the gpven no. ts Even ox odd? ‘inclucle < sidiosh> at Include
faa LKIRAN SIR TA num; NOW WITH Santosh Technol # Center "m PH Center the numt Cell: 924 SE Clo", &numy (um ofa==0)? peC'even!) s pod"), gerchto; % 7 *& WAP accept age ab the pason tind cur the person is &) yee le #2 Vote or nol? Tat age;pec! enter the age 3!" S#C' bed Lage; (age >=18) 2 pec” Eligible"); pt Cinot elégibale?); gercht>; #. Maine) nt as B= Boa 7 loraos pectiedar fo gacher; 4 X G=3>4 7 lor ao; //20 Gz 1Pars;//e a= 0! l014a0://20 = B>e31210% 261/20 a= H27 43334 = 448) Pinvatid, re is nocenbinotion cera sf ats wipane Q> 112432/inwld Were cn sone A= S>2.&has! 2102205/h0 santo 740 639? as cell d-4>4e Hay ffe QS B41 5267 barior>aisals B47 5<6), = B>47ItZ =3B 56% 10x67 4280: 203 /Ioo EB>6T1oit0 = 80 = 524% 6>17 101802303 [20 = 74 Laorsey =R0 A= B>42 R17 102203 S24 Danrde: foe = 3744 2214 lota0739 = 3547 10830 =30 - Q= B47 9>17 10: 20) S>6 722048 >47 a4? 4o: 50260;//50 = 32428511 10220: 5562 B0:8>92 Svosoy = B>47 812 (0120 4576230%50; = 324 Tasi} 10120150 = 3247102 B= 50 — Be ALF OL UAL sar 801401 //20 = = OPI PRO BOS 40; = IT AOL403 HRDXe WAP accept ano: find oud the given no.is 4!) Ye havo! —~—-—— Meant? Tota; PF CNENIA the Valte 2"; S#C od", Sar, (@>0)¢ pecl-eve"'; crum
s &&n=47 1004 20033 k= Crum>s 2 (numzio? t001209)50)! “ : s Ploo; Ns. ” OW = oe, He inst nado ian ie "5 K5// Err, hvalug Rounred : ann) at K, num ©) Thvalsey on err, value yeaulved The Aebhside mut be Main ¢ ) A vatable nota constowtno. Ink awioo; lootts Pe clokd as Jeno, dvolue veauived, ey WAP accept 4 nals Find the min- value? unite a pgm accept snds ,Soxt the Beds 7 ascending or deacencling 7 IRAN 91 wet ch natogies tos Seals & 24639294Advantage & Texnary Opens - As Bley Stok 15 possible to finish in Single Stmk,TETS ew Herible Drawback- ak tll Exeorte only Single strnt it can't possible te Execute mak ple Simis by Osig texnaty opdasors- Tf t- Synkart- 7% Coond) 3 Replacement by compiles. ste 1; | 1 Coon) _ > tor Single stmis 15 Opfonal. Stmt 2; ed ingle rt 3 stmt: cond] Strnt | Sim] Tly]e Flix v *. Maint) pes Maine) cot) Oe e —~ Feeae2) 7 e(as2> Tn the astcase, the olp propaly display! Pe Right) Pb Right): Jn the PA aye te ts nota Propet wny eh-olp , Pb wang’) Poe unong; FAIS season, we use the slsd keyword! geehe; geeho; 4 Lo A: Aleng ole!+ Righteourg, ** Theesa> He. TRCS22D TRC5>2) 4 pHa; Sar « . WAh>: Kein, OE jes fen Pee! cell: 92483 a pre'lpty Poe's; Poellelia: ° Phe'e'2y poe’ play Poet, . dip:. ABCD. & noneed ar Replacements = olp:- eeep iuIf else ?- Syptas:! Senne cont) Replatement stmt 4: 1#Coond) 4. eee ‘ime 4; Else 2 Ste 25, ue Syptaxe- . Replacement 1# Ceond) fe CERa) fcond | si ] Sa. | Se + ee tT Jelal y te iin ‘Stmt2; % Sime: stmt a: Syntox 3: , es Replacement if Ceond) Tec cat cond [51 ]5e-[ Sa [0] Stmt 4 a 7 eyalx fle ae F |x Stme2; else Stn 3, 4 Simen; WAP accept base Salah Emp. it the Sal>20000 deduct the tax Ade & else 152. Feioclude
Hinde
void maint ) KIRA t Float Salary 5 Now oe lyse Santosh Technologies Péc't enter the sas"): Cell: 9246392345 stcheloe", & salary, T# (Salary 520000) Tar = 30% bs moe eke Tans ISX BSI loo, PFC Tax caleutateal doais on baste, Salt aezh-“, bax bs} gach); &.Muttple 12 = sypten: Replacement Tecendy FF Ceendd Stmt 45 stmt 4s multiple thal, Sime 25 stmt 25 Else. 4 Simt 8; Else St as — This is 0b 0. proper woy, whenever mutdiple Sims ave stmen: Stmta: Executing ables 1B cond” beimeehes abteh the cond. compulscany to place ‘he stints within the beedy, cond | si] Sa] sy [s+ | $9] tTiyviy] «fete e xl x wield Syntax: la = sect) fetesement Hl 1 Ceond) 5 L Cond] Si] se] 5 [54 [50 Sua yx Po sey ela] vw] a Else 4 %; a WARP accept poste sal than Emp. Gf Salsio,000. HRATS BS Yo. DA 20-/e TA seo Glse HEAR 20+, Dae ISH TAS /o+ on baste sol Caloulate the net Sal. & cltaplay clearly the bogie sal. HRA, DAL TA. Maine) Hee bsat, h1a,da.ta,net ehsero/ peel Enter the bsal" I: ecole", & sol): Us Cbsal.> 19000) ct tha = 5% bsal/i99, Da = 20% bsal /iqo: e 15% boal / 1005, KIRAN Sik Santosh ow wn cial, Cell: 92463935790 thas ax bsal |joo) Pa = 1s% bsal /J00; Ta = 10% bso /i00; 4 Nee bsalpHrat Data; PFC" The ne sal AB, H¥0, Da, Ta4h bsal Ts + YoPeloP olf af ynetsal, Ha, 0a/Tad ; gachey;, k ¥ Maint) chsert)s 2¢ ‘A'e'al) pe cay; else pect"): gechtr; OR A b KIRAN SIR ~ Maine) NOW WITH j Santosh Technolosi tnka=lo: DAAAOIIAA el: 924539234 THa~o) Cc PEC Hello", ay 5 Else PEC" wd Hai") ad; S204 ae oat Meant) d 7 Cpe C'nello")) 4 of:- ever Asthe cond. is Sodtsfiedt bur thee is no stmt +o Execute S67 yalse,an Error. “To make -fo Exeoute, Mozac ) Maint) 4 Nyello")) TECpectnenoryp fae EC PECIHello'D)s t st 4 olP.- Helly Let is valid bud-tt ts not Treating ay cond+ Shnt.XH Mone) #& Maint) % Maint) 2d d ECD) > TEC L Pt cHellg'2D Chiseu eu pec’ Helles - FeO, 3 MInath Smt. else eee e PEC world"'9 . & ene Op Exxon, % Maint) %& Mont) X Maing) %. Meind) 4 4 ey PE COD), TH0005, THD . pecs"); PEC yes"), ca dise; “NON: Else PRC NON): PeCNGIDS pRC'NG!D + a 3 x & oyp:- Nall ee Ne bel Be ot dP. No besa pre eb semicolon ae The Semtcolon rndffantes Mutt Strat Hew Temeany atndtiline there to pos bly Toifhout coviting a. simé we are placing * te Else Cond. ‘Empty Stme . Acad 3 Meint? 3 Maint) tnt t a, : ane qntazo: Pat ays 2, %,07 tetane? Tees Be Gang) Bans a Haye ele ara; mn twelcomeried',ads chor yeio; pb cieledeled", 210; < THCY, pe clokd Helio! He eae 4 5 Ble Olp:- GMi0 olp:- ottello ee he ole! KIRAN'SIR now with fh Tech > FE (me== you) peony; else paetyerla 5 4 Dip Yes Santes Cells Se > Tre Sooke recuvieg Yetuming no. TF the ndsate non n reckoning Hac inthis pgm thts not only checktag the, novob- dedmat psats As Hood & double- tis alo checking the given no. ts xeuwntng o7 Non. TeEKrig. Wie Recurring ads ade theno's which never nda. wheneves Tecurttng oe.18 occurring, the float & etouble neve Souals no- 8s alwoys great than the Floot nels then YR Odd, 38 Sats feofrN aC Muattiple if Condition 2= Syntaxt- 72 Ceondi) t hit ; F -Enthts mussiple 14 conditions every cond: cor) Ay D: Chedk, either the and. 1s sattsHecl & not Sav ste: There #5 90 choice dr leavis Condi tie F "won, T Lit Cond a9:. Uw sine; t e f iF os ) nS eg Xx WAP accept 4.nd's tind cut the big numbe. Maint) int a,b.C,d, big 3 cae enta the Values). in “ a hded adil ae Bbc Rel); kiran | iSong nologies (& Cb> bu Santosh Tec 9) 2345 bigeb; Gell: 924639 TE Cc> big) bigacs iFC ds big) big =at; PEC By I9St Not, bray. geteho ; Ps y coo! % if else tf Syntan:- rr ) t Stns 5 5 else if Ccond 2s Stats; q Stit { Else iF ccond3) av (pstmt 5% Wapaccept aches- find cut the given chodis upper, lowed -digitd Maing) ¢ chaach; clyserta; pe center the char); SRC esd", &ch); He Cch==65 &&ch<="2!) peclolc 75, uppa cued ARCH esd", chch)- ele Lb C ch>=94 && Chez [227 Pe Clolec rs lowes Case ob ASCitalsd", chich): else tC cho= 4g&ibe che=54) ° Pe Cole cis digit ot ascil ehd”, chich); ebe 5 peColoc t5 Special char abr Ast sed chich) getehty; 4g, Nested if Condition Syntar:- [12 Ceendition) Joy #Leond) alr Sime Ls * write a pigm accept marks th 3 Subijters the gixde fA the Shidents. Santos: Cell: 92 spect chat? 1926 »A-% (upp Cose) Céo te 90) RPG .A-3 Clower Case) CIF 10122) 3210 > digits (0-94) C485) Ans aa-y Special Symbls C+—4 3.) 6-> 34 -> Non printablecha's & Cntal Keys, S~ exc Space, 6228 + Graphic char's , ™ a) 4-0-2585 2st chas's, KIRAN SIR Now WITH fn Technole? = 46392349 «Find Duk “bal & cays display wptalds cisplou, if avg>to—> giade "A" , avg >50-> sade “B', else crdinny Po Thoms one Subledh os pfeil aioployay foil adegeny withod place, min, Bo malls, fA gach Subject C Poot ye dogieat opeiadas)a0 Maint) 2 fot | sma ma rinty Float avg ; clyseveys Pec enterthe masa s!3: S#C™ ch eled shod", Brn dba, kms) fot = mitms +mg: Ovg= (float )+0tl3; PRC! totals ofa ond Aug cleat lll, tot avg); TC mae Teoma sar) t ¥# Cmg>35> GR Cavg>@) PEC pass--. GeapE a). KIRAN SIR cue Now WITH . 1 Cag >50) Santosh Technologies cal © ; 5 Fre Pass --+ @RavE Bly, Cell: 9246392345 PEC octinany pan"): élse PCY fai"! y 4 Else pecYaaly: getcht |; 4, % WAP to Compute Electricity bill fh domestic & commerciad purpose with the fellowing Node units — Radelunit. Extras ps Il. Savice chadge + RS- 0-06 /~ per unit powey, o-5b bas 51-300 was fam - Subject to min de RS 20/— FA Single phaeamh 5d tb} — 200 sar 7K 3 phaje. 200 45d dy Commerctah purpose « eee eee eubhas RS 20)— sevice charge 4 Rs -0-06)- Pr Unit Pouch 0-100 Bas >I00 4-00 Subsed b min. ob RS 5r/—-HK Single. phase & RS-100)- A 3 phoge. -Maine) ¢ ‘nt Us ph; Chas type: Flood amt + chsere; : PECHnveE be Domestic. CDlay"): PECIN ELE a. Commercial Cc]<) ), PEC In Enter option sn): St Clelec!) &typey; Ye Ctypet= "Dae, types AB type L= “c'Uh type f= &!) pec! TnvabiA typelta- geteho; Exit tors clrsext), PEC enter nov 6 units "Dz SECM +bd", Bow; KIBAN SIR 1 S lOW WITH PCM entyd phate cr a3) 297 Santosh Technologies sf Cena, yh Cell: 9248392345 7 Cphi oi && phiza) aren type!2 getnts; Gres, 3. TeCtypec='o {{ typez= a’) 2 Te Cnuc=m) Amp = nur nars Oe enue = 100) mb m (som (AT) Cn Osa) 2985) / She Ur Cnuemaoa) Crabs C50% AT) + CO% BET) + (Cnuasardxgear) else, — Ant = COKE AED + CHARS FCIOO% 3-9) + CCnu~200) * 4-20); 00 pt > nUrd-0b 34£ Cphesi) Qt TP Cpewaed ptraey x else te Cptes> Pe=307 Y Welemonthe Ena Ct) else TE Crp <= No) amt = nue3as: Else amt loo% Sar (Cu ~100)%4-00) Sl= 20-00; PEE nUxo66) Us Cpheei> -RIRAN'SIR 2 PE Cpteno) NOW WITH pk= 50; Santosh Technologies % Cell: 9249392345 ele te Cpt
a tlushall ¢2: Austen wt ye Aftes, $Flush Csidin) easscaie | farsi] [otie I chatacters ore. te ut a’. Atinclude
Magne) Outpur:- bea; Stow Hh gate was: Entortne Thtega value: 343-5 Pt Cente the. crntege ualue s"); antuthe chaiachy, £343 steed" | had, with fAughe): PécMente the character 1, mba the Integes values 4 ~ tlushall co», // Hlush Csidind; enter chaiacke « hy St Chhe, sy, 44h, KIRAN SIR PR Chobe oles aus9: Now WITH geen, Santosh Technolog % Cell: 924 “% WAP A Shopkeeper allows a Commission torrthe Sales person, Tom Sale amt Rate o-cmmen, PO 10,000 win >= leo k
= 8Doo RS» 2000410014 snsale amb tn excew tr QTD00 Month =< Joob0 sis >> 10000 S0/+ Ute 10080 Es] adene, Recept item | amnaunt ayomilp. tind wud the much ammisiren git 7b the Soles pasen,Main¢ ) d nt ame; chod teem: Hoot onsn: chiscrea: pt Cin tle 1-¢pu Cela": PEC IMLELE &. monttA Crlm)')- PEC" ert the ttem"): St Csteot, item I: #lushalley: if (Stem t= “C&G Tem) = “oR 4 stem | ='M LB atem 1 =!) n C'Invalid rte!) ; gether: Exie Cons 4 Cxtenes'¢ |} ttn == ct) tL PE Comt-< 10000) cmsn =o; Elsei® Camt >= 10000 || ant-< 25000) "os Cen = amb © 8/t002 eve msn = Coint — 83000) * lofloo : KIRAN SIR 4 NOW WITH ae , Sgntosh Technologies Cell: 9246392345 L a =a [tte =* ‘Camb
Sustich Cmaue) con ‘al: core “4! s 7 Tnvolid:. care, 344564 |] floating pt not attowecl tye ‘abe! M mere chovacters not attoued Gaye Nabe” + /[not atowed , Coy 83 Fy Gre 23+ —>/Meplirte not allowedPAA case 3516/4 *// comma nob, allowed tr aye, bub In Secitth TETS ablowed cose 626 + // Not aUlouxd Sureh(> // emphy not allowed sSuotteh Carb) // “two vediabley not attowedl» €g:- Maint) Yat choice > clrseer: PR CHalelt MAIN MENU PEC INVELE 100 police”); PEC Inlele los emeraeney")s PECINIELE 103 enlaviey'; PH cn erty the chotce $!97 St Coed", &choice dy Switch Cehoice): t caxe 100+ pt C Pouce KIRAN SIR break; OW Innologies Core lo8 + pt cHAMBDLANCE'y: ‘osh Tec! 5 ior. Pr 9246392349 core 18 + pect eNGDIEY"; Cell break, deboult + pét'unong choice"); 4 “4 geieh>; & WAP Zinplement the arithmetic Operation using Switch :-
moinc ) an Ae me PEC In wrong poate"); chen op: geeho; PPC Ent a&b values 2\n"), gy. SHC shd sha’, Ba Bb; PEC’ Entathe choice (4,1 flush Csidiny, st Clee’, &op?y Susitch Cop), case '/'s pt Cdivision= pd", a/b)¢ break; Core “a! t pp chaddition = +d", a+b); break; ca “1: PEC'IN Subbaction = efi", ab): break: Corey! + pectin Multiplication = sid" ab); breaie;WAP accept doy, month and year Find out & display the weer day. Maint) be ddim, yys Aug ap-o: pt C*enta doy nos" SRC" ea" ec); PEC” ents the month nods S#tsIsa"-anm; PEC ented the yeor St Chaba Ry), p= Cyy-1) % 366 + Cay) J43 Linstead oe (gy /4 deap = (eys-D/4 Ly9-1)iw + (yy-1)!400; Switch Cmm), JRAN SIR santosh Technolosies Cell: 9245392 cay 3 t Apt=25; Core 2s dpe aie care | 4 dptadty 4% 1E Gyrh4 azo &kmms2) W to (yah 4 m0 Bhatt 90} wall yysl 440==6) 48 meno.) dptts sustteh Cpe) me + Pe sunday’), break: - Gaezz PRC! monday!» bveat» cues: Prt” Tuadeys bray cout t BRE annie"); braces cote 5 PE C'Thussday); breate, casesi pt @-bidoys break, Coge yt PE CY Soadoy") > breap: 4 geleners 4ee % WAP a company Ensures 0. 30> 28 follows Dik age dr the person >25, the marital statu is maried & gende is male. it ag0 20, marital statu, unmanied gendel te male, ~P it age >20, marital stot Urmanied , gende 18 female. TR any one db criteria is Satistied helshe Eligible for the gob. Noter= use # Else condition. (withaw logical operators).
Matat) Tint age ches slate, gen; PEC Enis the age ob peason'!): Sted", Yager; PF Ci magitad stosy Colm"): #elahabie); St Chae, & state) fPlothabter, PECK enter 9 Sl afeeN, gen); V4 cage >=) TPL state =m!) eee KIRAN SIR eles : wit if Celigivee fH gobo), gantosh Technologies y Cell: 9248392345 ele é Czage>as) 4 Cstate=*u') Fecgene ) fe ° Eligible fJob"): Beit Cane) 4 PEC Eligitle. 48 pb) 4 else. PE C'Not gligible és Job); 4 ue%* WAP accept a char. find pute given chad is Vowels & not Casing Susttth). Main) 2 cheb ch», PFC'enty the chan") #lushall L) 5 SEC obct&ch)- Seaitch (ch) iv Cose'a'+, PRC" rtis veneh"); break: Case‘d + pte" zis vowel: beak » coset pe tis yout) break, Core “Speer is vowel”) byear: oe O : pe TL is vowel": break. deboutt + pC bis nba Vowel): ~ WAP display she op Wrethis, 12s as. stdioh>
;
: Shot |; Stott; Stmt 22 stmea ‘ < label name > Goto < label name> ; States + Maint) dL clyseve) Xt PRC Goto): got K:. getcht? & The olp Infinite times bakes place Ttisin Unconditional uncontrolled stmt. re-docnlt hae power ob condition checleing , ee “To malte “this uncendifinal toto Corditional sime we ube a Teanany Opucted, *& Maint) R t AN SI a ae “en winnol ei) SOW) Ea osh Xe ie Cieesd Santos ne 139234 ‘ Cell: 92 PIC Gotan): CLF: get Oar goto ek, got. gotox:, gots X& got geehea:, k, % WAP te disploy “the no. 1 fo 100. Maint) ne fey Naturals i2CFL=300) gates chad, 95 toh fatwal;s $Ole: a @® iver, natals i Ciz=10) 33 Nakdale ifCfe=iny d 49 4 PE Ca7) m6 PE Usted shad Ie, Tees os Riedy PR Cee ain, $2) if pe 3 goto nackwal / Goto pachwat + a 2 4 ’ k lo; getehtr oe “& WAP accept a, no.-find mut the Sum th Seig upto that no's & display the Sum, Maint) maoint) d d tat num, Sumy int T=1, n,sum=o1 peclénhs theo.) PH CHEnka the Ais!) SPchba", Baum), SE Chole “deny 2 Natwal 2 1k Chum 250) Series % pcegaed > t @ gum ssum4ts Sumo Teas Sum += num: gots Seriers Aum. - 4 goto nachsal » PRO" sum oe Seis teh 424+ ~~ delede oped? 4 0, sum PEC" sum malt’) Sem) geiehtr; wd 4. ae Conditional Control stmis?— > Eniny Controls Sih ‘b KIRAN, awhile) + = wow Wine! 1, negation ; ne, ea pa gentoo 25392 cell® > Ds GULu Maint? a* tot ts clsere>: T=10; while Ct>=1) becuse’ ty tetit/) diene: tee ORI CheSa mtn ey) x WAP ied & display suuares & cubes fA | to Lo numbers, Maint) Gat T=! 393 cheesy KIRAN gy while Ctz=10) Santog pw wira ech i hety Cer; NOlog;, PE Cisauade 4 shad’, nxn) 924639559 net: pe Chauber -nad Inll, ngnead! Tey Serene, 4 [Pe Clin Alember | sauiates\t-ceuboes I'l)» \pe Chbad bad ohéd \nt, 7, Ixty THixI)s Lets WAP accept ano. find the product ts -hoo no. without using multiplication opah Maal) \ a pk Ci produc (cca tba) Prod? geichty ; 4 a ub, prod; crsort); PECMENKA the 2 values :"), St CIed spd 4, &a Ab): Prod no, ahi le (E> =1) } \ v i" dangne PC" product 0 2nals led Meld = slad), cube Pract) t Prod = prod tar; bes 5% WAP accept a 0, display ye. muipliedion table fey the nlo-. Maint? Ink 9, P=4 ebsserey, PE ClEnks the no. AR mul” table"), SE Chepalynd, while Ciz=l0) PEC MRS Aoted Seled'n,1, NAD ets 4 getthty; a WAP accept ands bluoth: 2n0- lis play aul mui™ table tor nt terms . ‘Maint } Tat m, Panay Ne chyset) che tease taped KIRAN SIR SECM sled 591,029: NOW WITH ; Tea Santosh Technologies while Cézah Cell: 9248392345 t pany, wahile Coy enna) ne Gad tebd = ha "yt, nal) ner ety PRO in); geen; 4, % + Notd Maint} Int Nh, Tez Ceo" seta pect IN Ents, ‘the. nay SEChAN RO); while Coen && Cén1) a Oe99¢ ik Cfes2> . Pe Cleuen no's trom to sid "s 71m); if Ctm=td PE Cin odd nds rom Ltosted!", na: Pe Chebd E705 Ta fey ote) Even no, trom Le 16 Hs a 4 6 &6 ott edd no: “tom Le 1p 5 PS F148 getchery, WAP Te accept a.no- find mu thegiven no-7s palindwame or Nat? Moja) Tht eum, yeveo, nen) KIRAN Sin Chrsexers, . NOW wit p& cYemty the no'tn'la: Santosh Technalogi SE Chea", Sra); Cell: 924629234 Mumt = num: while Crum), d FeVe revo ENUMel 1D num /=10 7 iB Coum = rev) PE t'nlo. ts palindsome!'s; else pe C'Wo- ts not padindwme"), gaehtr, g. WAP Accept a no. & display the veverse utr that No- Mota Aum /=10; t 4 ‘ int num, xev=0, PEC" Reverse t shed "rev); PEC" Ent the No.1)» giro: SECS", Qnuero) ‘ while Guu /} aumrs A num jad t Yev = eVHto rt Cnums|sio)” uP accept ano. find.cut the given 0-15 Armstwrg Alumbet - 4 ae ISS = sSaste seuss ‘Fk NuMamtco, cre 09 ', PE-CY ents thenas): Skcleled", Brum); Og =num: uphile Creu) d Cube = niume|-to: ams = Gms4Ceube xctube xcurhe); num j=to, 4 PEC" In Ahimshing noir theslec s/o", O79 amg): getcht; 4 Xuvp Pecepta no. find ouk the factors ok that no. , display the factors. Gols ick cui “the, given no. 1s prime ov Composite Ads: _ Magnt > qd | oe Yn num, halls, cheek , Prise iy Cpimes
a Thktels pe Chand 1D while CTZ=10) Pes PEC aT) 7 Tees Ge FIT pp ~~ infinity - Ale thistime the Compile, maxes teplatem ent sith bodes bud within ‘he badly Gnly one Sime take place. + Maing) a nt Ts; while Ct++ 210) PE Che Det 2345678410 With Semicslon ¢;) whenever Wedebine the simé ustth Semicolan the. Com piles replace with Empty boy es thae is no sims. Main) d int 121; tahtle, Case; a + PE Cbd”, 1); PE Chea ts "PL Replacement: while. Ci<=10) — No stmt, 78 0/0 intinty
You might also like
C Language Notes For 1st Sem
PDF
No ratings yet
C Language Notes For 1st Sem
261 pages
Kiran Sir (C Notes)
PDF
No ratings yet
Kiran Sir (C Notes)
198 pages
Kiran Sir C Notes PDF
PDF
No ratings yet
Kiran Sir C Notes PDF
198 pages
C Lang Hand
PDF
No ratings yet
C Lang Hand
198 pages
Kiran Sir (C Notes)
PDF
No ratings yet
Kiran Sir (C Notes)
198 pages
Balu Sir New C PDF
PDF
No ratings yet
Balu Sir New C PDF
450 pages
Balu Sir New (C) - 2-450
PDF
No ratings yet
Balu Sir New (C) - 2-450
449 pages
Kiran Sir C Notes PDF
PDF
No ratings yet
Kiran Sir C Notes PDF
198 pages
Balu Sir New C
PDF
No ratings yet
Balu Sir New C
450 pages
Chapter 2
PDF
No ratings yet
Chapter 2
20 pages
New C BALU
PDF
No ratings yet
New C BALU
214 pages
Lecture 1 Introduction
PDF
No ratings yet
Lecture 1 Introduction
28 pages
Unit I
PDF
No ratings yet
Unit I
21 pages
C For Beginners (Ian SINCLAIR)
PDF
No ratings yet
C For Beginners (Ian SINCLAIR)
246 pages
Day_1 C-Programming
PDF
No ratings yet
Day_1 C-Programming
23 pages
What Is A Computer?: Software
PDF
No ratings yet
What Is A Computer?: Software
24 pages
Introduction To PPS
PDF
No ratings yet
Introduction To PPS
74 pages
C by Pavan
PDF
No ratings yet
C by Pavan
34 pages
8.Computer Language
PDF
No ratings yet
8.Computer Language
13 pages
Programming Fundamentals
PDF
No ratings yet
Programming Fundamentals
169 pages
PPS Chapter 2
PDF
No ratings yet
PPS Chapter 2
7 pages
C Program Notes
PDF
No ratings yet
C Program Notes
137 pages
Introduction To Computers - Languages: Department of Computer Science & Engg. Sgi, Samalkha
PDF
No ratings yet
Introduction To Computers - Languages: Department of Computer Science & Engg. Sgi, Samalkha
16 pages
C Tutorials
PDF
No ratings yet
C Tutorials
116 pages
Chapter 1.0
PDF
No ratings yet
Chapter 1.0
62 pages
COS201_2024-25
PDF
No ratings yet
COS201_2024-25
82 pages
C Book
PDF
No ratings yet
C Book
117 pages
MANUAL Embedded July 2024
PDF
No ratings yet
MANUAL Embedded July 2024
123 pages
What Is C
PDF
No ratings yet
What Is C
3 pages
I1101 en PDF
PDF
No ratings yet
I1101 en PDF
153 pages
Engr Martins Aspect MTE201
PDF
No ratings yet
Engr Martins Aspect MTE201
85 pages
Unit - I Introduction To C
PDF
No ratings yet
Unit - I Introduction To C
30 pages
Day 1 CLANG
PDF
No ratings yet
Day 1 CLANG
7 pages
Computer Programming in C
PDF
No ratings yet
Computer Programming in C
208 pages
PC - Akash Sem 1
PDF
No ratings yet
PC - Akash Sem 1
66 pages
C Language-Class Notes
PDF
No ratings yet
C Language-Class Notes
18 pages
C Language-Class Notes
PDF
No ratings yet
C Language-Class Notes
14 pages
C Language-Class Notes
PDF
No ratings yet
C Language-Class Notes
14 pages
NEW RJ COMP TEA भाग 4 - कम्प्यूटर अध्ययन 1
PDF
No ratings yet
NEW RJ COMP TEA भाग 4 - कम्प्यूटर अध्ययन 1
17 pages
OOPC Part1
PDF
No ratings yet
OOPC Part1
25 pages
Ocs752 Unit1
PDF
No ratings yet
Ocs752 Unit1
40 pages
Arnab sir1
PDF
No ratings yet
Arnab sir1
8 pages
Chapter 4. The C Programming Language Objectives: at The End of The Lesson, The Student Will Be Able To
PDF
No ratings yet
Chapter 4. The C Programming Language Objectives: at The End of The Lesson, The Student Will Be Able To
6 pages
Introduction To Computer
PDF
No ratings yet
Introduction To Computer
48 pages
Introduction To Computers - Languages: Department of Computer and Information Science, School of Science, IUPUI
PDF
No ratings yet
Introduction To Computers - Languages: Department of Computer and Information Science, School of Science, IUPUI
16 pages
C Lang
PDF
No ratings yet
C Lang
156 pages
C Programming
PDF
No ratings yet
C Programming
42 pages
1.1.3 Algorithm
PDF
No ratings yet
1.1.3 Algorithm
33 pages
Sumit
PDF
100% (1)
Sumit
58 pages
Modul Four Meeting
PDF
No ratings yet
Modul Four Meeting
15 pages
Spcc Easy Solutions Spcc Easy Solution Book
PDF
No ratings yet
Spcc Easy Solutions Spcc Easy Solution Book
71 pages
3 Algorithm
PDF
No ratings yet
3 Algorithm
33 pages
Microsoft Word - C final notes unit-1 last version
PDF
No ratings yet
Microsoft Word - C final notes unit-1 last version
45 pages
Compleatenotes
PDF
No ratings yet
Compleatenotes
49 pages
3 Algorithm (1)
PDF
No ratings yet
3 Algorithm (1)
33 pages
Programming Methodologies Notes
PDF
No ratings yet
Programming Methodologies Notes
59 pages
Lala
PDF
No ratings yet
Lala
33 pages
Notes1- Unit I -BCA 1-Semester-I-Basic concepts of Programming languages
PDF
No ratings yet
Notes1- Unit I -BCA 1-Semester-I-Basic concepts of Programming languages
49 pages
C - Notes
PDF
No ratings yet
C - Notes
171 pages
Graduation Compressed Compressed Compressed 11zon
PDF
No ratings yet
Graduation Compressed Compressed Compressed 11zon
1 page
Ca1 1
PDF
No ratings yet
Ca1 1
6 pages
Excel
PDF
No ratings yet
Excel
15 pages
BT 5930
PDF
No ratings yet
BT 5930
14 pages
14 Summarizing Secure Application Concepts
PDF
No ratings yet
14 Summarizing Secure Application Concepts
31 pages
Srs Chatbot Srs
PDF
No ratings yet
Srs Chatbot Srs
10 pages
Madhu 10 PDF
PDF
No ratings yet
Madhu 10 PDF
8 pages
Unit 3 Fiber Optics Lecture 1 PDF
PDF
No ratings yet
Unit 3 Fiber Optics Lecture 1 PDF
38 pages
Accuweather - Srs
PDF
No ratings yet
Accuweather - Srs
60 pages