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)
31 views
Pps Lab File
Programming for problem solving file
Uploaded by
Srishti Pandey
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save pps lab file For Later
Download
Save
Save pps lab file For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
31 views
Pps Lab File
Programming for problem solving file
Uploaded by
Srishti Pandey
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save pps lab file For Later
Carousel Previous
Carousel Next
Save
Save pps lab file For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 32
Search
Fullscreen
PAGE NO, PROGRAM TTL Write first € program Write w program in to print your name, numbers, Write a program in C to swap two numbers (a) using three variablex and (b) using (wo variubles. DATE OF | SUBMISSION SIGNATURE ‘Write « program in C to calculate the area and circumference of 8 circle, ‘Write a program in C to check whether the given number li even or "| Write a program in C to print student details using structure. odd ° Write a program in C to find largest of three numbers, To ‘Write a program in C to simulate calculator using switch care statement, " | Write a program in Cto print factorial ofa number, a lala || 7 | Write « program in C fo print Fibonacci series, 14 laf 23 Wiles pogam’n CoTind evens ofa number and check whether |e ; is palindrome or not, ty Write a program in C to check whether the given number is prime or 17 late not using break statement, > ‘Waite a program in C to print star pattern, 1g te [fa3 Tt J] Write a program in C to read n numbers, store in 1-D array and print pe ola ez ~ elements of array. ‘Write a program in C to print sum and average of ten numbers using 22 lol 123 array. | Write a program in C to print addition of two Matrix using 2-D array. 24 te 14 a3 , ‘| Write a program in C to copy one siring in another siring, 26 [iW Ale> 1. oH | Write a program in C to swap two numbers using (a) call by value and WA fale ( (b) call by reference. | Write a program in C to print address of a variable using pointer. Z49 Wh l2y \ 3 taini23 [7Program ~ | Byect a Al ze fish Cc Program, te indude
th mat ony wy Pelt f (nay name ‘ic Shivang . So) velum o+Perog-rexm -3 Wisite CT Geelhon ine for addition of two Numbers . Frindude
int main () 5 ‘md num), num, sums, PRMKEL Enter dhe fiesl number: ye Seanf("*/.d", demuml)s Prinl{("Enler the second number * " Seanf ("ed") ¥ numa) Sam = naml+ nam: pants ("The sum ef hd num, sum) > ond hd is thd nn", nami, rselum oF Oxkeuy / Enter the Hivst Enter dhe The Number. ¢ Second nuvnbex * s Sum ef 6 ands TA UyProyrom= 4 Objek 2 Write 0 preneam Ta C to perform ovlthenet, nD Hhindude
Opevabey, \y"ry Osteo Enters Whe feh nambest 5% Envex 4 opexabor (+, -, ae Entey the Second mumbey . The Stesence %e S Reg Se | ac —,,rt~”~=~—<“C“‘CONNRUC:SCSCKSCsrsSKSCseN Enles ane Emtex than Enter the The Ties number t so opewaker s | Seomd numbeys quotient ts 3-33 eeProgram = Wate a Progvam, a G fo. cuap) au) O) Using hvee Variables b) Using, 1) Seorpping Ushy Ahice voribles: aH dude
IW wind Ik want, uw? temps pak PU Enter the fact namber + Oe seanf (er, Brut) 5 pint?" Enter tre second quumber? ")) Sean g(“h db pum 2), eehd, name hal pani? ("Bef soa pring ¢ num) awn, MOM2) | 1] Sox png stra iver vertables deme = POU trum = nun? mamnz2 = tee! i pafl"Afte, — swappi using Ahvee Vamalles | mummies haf numa = Yf.d\ni, numi, roma I! Swapp 3 aad AWe Venvables usthout ha tempera "varelles mul = UM unt 2) mune F Name = naw?) mam) = NOM t= nUMZ) prod ("Ate y Suoap ry using two varalbles t srumls fe d umes aN" Matin Ve \9 4 mam t, mam? adam > 2 bSotput Enter Ane feck mombes se Ember au, Second amber 49 Belne AEP Ba oe | Alkes Susapo ee three Votiobles © um 242, ram2- 2¢ Aes as) . Awe Vorighles mami = 26 mam 2 = 45 ; ;Progam 6 a ca and oo Pegram in Cte colealebe The asea Cixcumference Ct a cle. oh indude
Hdefine PL 3 idisg ‘’~ mam) § double “ wadius, oven, cleeumferense} prod ("feber tre ads of dhe cicle 3°): Scant (4 2", Krvwelius ) > Cea = PLE sadig, S* redius® cheeumlamce = a™® ore redline 3 PPI Aree ok he ciecle 4 Ayn) owen) 7 PHA FC" Lrecumferenee QAke die FAY WHE, chveamde Facking veturn OsSyren = | . | Wile 0 Prarmm mM C to cheek whether the given Tumbey i, SNM or odd. H include < skdto.ny ww main) § Sk ™ PARE Enter g num bee") » SOF", Yanys F@l-miasnoys PRY d is an SMen amber Vn", we) 3 else ¢ PU L A is om odd srumber Na" an)? 3 wehamn o-,Progam “8 Wite 4 Program Tm C to find lowest of three J Hindude stato. hs tid main § Wd nam! numn2, nom 3, largest 5 Prd (" Enter Meee numbers; ")! Sol (EL LLL nk" Kaul, Vrumn2, Yrum3)? largest = uml! Vf Caumes largest) largest numa CE (mum 3s \angest) largest = Rams 3 PRC TRe loge names fe + or en relay os TIS dy", largess NZ OutpobPas sles oem = 9 Wiite 4 P09 rCe¥9 WC te Simulate calculator Using ast — case Slobemend # indude
WY severe Numbex Cink num) § WA *RXersed Nom 29: uWile (m>0) 5 wa wemalude, = MAMA 101) wenviersedN uy = C¥eWersedNum) Boyt semalnders, Nm] sto 3 Below -ressersed Num a 3 i ih GPAbindwome Cd mun) wk FN vsed Nom [Nee Number ( num) + PP Crus = Fevexsed Nom) § Nelomn UF 3 else q setucy 0 A 3 Wk main () { Wome PAPC Eder Scom fC" of, g" if Ci Palindeome Crom) § PAPC Ad bsg Palindvome \n") num) A A members "ys » Ynom)salse ¢ t PrWAK Pad Ps mot a palticrame «Wn, num) 5 5 veluin oO: ovtpot Extes a nombeyr 4 ry MU ts ew PalindromePro 9 EQ: - \ oe 3 ie & PEAS Say C4, Lhe checle fa oshether the queen umber pame os mot PEA Break Adetemerd ttivdude
privd fC" Enter a positive Weges: seamp( "hd", qe member)! TP (momber < 1) § pap ("ed ts mot a prime mombex A"), nombec) Zelse 9 ‘f @s Prime (number) $ PHdF(' td % a prime mumber.\n", number) 2else ¢ 3 3 telumn 0: 3 oeteet Enter Positive erger : 17 Ts prme number, Evtes a Positive 12% nel idemer 212 Prime numbers. Y“Pron vsorn a \t We oa Progeam Fy, Cay Pir sax Pattern. jeintlude —
20 After Stoapping by Nalve 2 mums 20, raranato Nom a= a Aftex SHEP ping by Relerence + NOM l= 20 » NUM2 = lo auPreayrem - 26 ie A Program MW C 4p pnd aclckress oo yorodole OsiKg — potter , H indude
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6125)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (932)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8214)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2922)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4972)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Tóibín
3.5/5 (2061)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1987)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2530)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Principles: Life and Work
From Everand
Principles: Life and Work
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Steve Jobs
From Everand
Steve Jobs
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Yes Please
From Everand
Yes Please
The Outsider: A Novel
From Everand
The Outsider: A Novel
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
John Adams
From Everand
John Adams
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
Little Women
From Everand
Little Women
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel