0% found this document useful (0 votes)
22 views

Class Notes

Uploaded by

sanjaydhingra811
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)
22 views

Class Notes

Uploaded by

sanjaydhingra811
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/ 7
Ma. ee = Pe Ue py 2 include 3 ant pr(int b) Sa by static int 1-0; 6 if (b==0) bi A 8 ey c ? 18 PSE m= 6{ Bra return (b%10)+pr(b/10); Pe) } prep 15 int main() 16-{ Beg cto BE} printt(“enter the no:"); SL) scant ("%d",&a); 7 =pr(a); Pa prints ("%d" ym) 5 Pad faa winclude :] 9 10 if (b==0) PTA Gs rt OE } Ey > 12 aa] re) Ca ene cc } Lie 16 int main() 7-{ 18 cae F 19 print f("enter the no:")3 20 scant ("%d" 8) s Pat Oe yl faa 23 } eo: a Command line arguments Standard Input: ® Interactive Console ¥ Se Mets eal Cee yu Roe ro ace] ry 2 #include 3 void pr(int *a,int b) rene Hy Piette ey iB if (i==(b-1)) - ¢ co] C7 erin "Rd", *(ari))5 10 CaeT 11- rf rr print (("%d\n™,*(atd)) 5 Bie) Per rv pr(a,b); By nf 16 } Sree) Br Ft) int ar[]={1,3,54,64,6,7,4,7,32,6,34}; cm acest tery (1) ypreoer ) Yad ' pa pr(Sar[o],c); 22 ns Ls re eR 5 Pe SC 5] 4 int main() cae & int ar{}-{5,4,3,2,9}5 Poe eee: eae er tors a (ems Co or ae (Ces eres 3 for (4-054<555++) oe CRS" ar ADs ee) ST eee ~ ei Pa en: onlinegdb,com/online.¢.compller Wy vn PCCM SC nut rT p 3 4 int main() S- \ : SCO CPO rere Fy Ld ct a i int i,j,k; 9 for (i=1;2<534++) 1w- { i ar se a (Coen Ge Fk ieD) : { oo if (y>(y+1)) it aah ie aS dak Oe MAE iar) yee } yrd } 23 for (4=054<454+4) i rls GLC MPT IES bY} DoF “2 Command line arguments Standard Input: @ interac SC ME Xu CTs p 2 #include 3 ry by c 7 char a[3]="hye"; F een 9 ra; 10 for (i=0341<3;i++) ae cv) ST GEER LEP h ED | B- rf 5Ce for (k=0;k<3;k++) shea pt an Cs MM ee UL cD) 17- { 18 continue; 19 } PX) else print$(*%c%c%c\n™ ,*(r+i),*(r+j),*(r+k))s ..-Program finished with exit code 0 ress ENTER to exit console.§f es ee) CO Le a 2 Winclude 3 4 i" Cre) Ps J CL yy ? mR eC Cue ue OULD iS feo uN Ty) 9 PC h rT) Teh Bey Pe tt Cor yT er) 12- t BE) printf(Nenter the a no:")5 py scant ("%d",89)3 ct Poeahinn 16 " cv) BCL az pt Pau Pt) Pome ceses ter vress) = Bea re Protas oe, rk) ea v . of 4 eC Cer Sore nter the a no:10 SS a OM TR) SS OM IES) Ce Cre)

You might also like