SlideShare a Scribd company logo
1 of 2
1. WAP to calculate addition of two given values and display result on output screen. [without scanf( )].
2. WAP to calculate average of 5 given float values and display result on output screen. [without scanf( )].
3. WAP to take input for two user-defined values and perform following calculations. [take i/p using scanf( )].
- add=a+b
- sub=a-b
- mul=a*b
- div=a/b
4. WAP to calculate area of circle and circumference of circle according to value of radius given as input.
[Area=3.14*R*R ] [Circumference=2*3.14*R].
5. WAP to calculate area of rectangle and perimeter of rectangle according to value of length & breadth given
as input. [Area=L*B ] [Perimeter=2*(L+B)].
6. WAP to calculate simple interest according to value of principle, rate of interest & no of years given as
input. [SI = (p*r*n)/100].
7. WAP to convert temperature from Celsius to Fahrenheit. [F=(C*1.8)+32]
8. WAP to calculate volume of cylinder according to radius & height entered as input. [V=3.14*R*R*H].
9. WAP to swap values of two variables using third variable.
10. WAP to swap values of two variables without using temp.
11. WAP to check whether number entered is even or odd.
12. WAP to find largest number from 2 numbers entered as input.
13. WAP to find smallest from 2 numbers entered as input.
14. WAP to check whether year entered is leap year or not. [The year entered as input should be of four digits].
15. WAP which takes marks of 5 subjects & roll-no as input and calculate total & percentage also print result in
terms of [distinction (>=70) , first-class(>=60 & <=70),second-class(>=50 & <=60),pass-class(>=45 &
<=50) else fail]. [elseif ladder]
16. A cloth showroom has announced the following discounts on purchase of cloth worth Rs as follow:-
 If purchase amount if less than 50 customer will not get any discount.
 Display amount before discount, discount offered & amount after discount to be paid by customer.
PURCHASE AMOUNT DISCOUNT RATES
51 – 100 5%
101-200 7.5%
201-300 10%
Above 300 15%
17. An electric power distribution company charges its customer as follow:
Take input for customer number & consumption units.
Consumption Units Rates of charge
0-200 Rs. 0.50 per unit
201-400 Rs 100 plus Rs 0.65 per unit excess of 200
401-600 Rs 230 plus Rs 0.80 per unit excess of 400
601 and above Rs 390 plus Rs 1.00 per unit excess of 600
18. WAP to create choice based calculator which takes input for two values and performs calculation for [+,-,*,
/]. [switch case & else if ladder].
19. WAP to check whether number entered is positive, negative or zero.
20. WAP to create choice based converter which takes input for distance in kM and carries conversion to [m,
cm, mm, feet & inch]. [switch case][make use of goto statement]
21. WAP to find largest from 3 numbers entered as input. [elseif ladder & nesting]
22. WAP to find smallest from 3 numbers entered as input.
23. WAP to print series of odd numbers from 1 to n terms find summation and count.
24. WAP to print series of even numbers from 2 to n terms. Find summation and count.
25. WAP to print series 1,4,9,…..n terms
26. WAP to print series 1,11,111,…..n terms
27. WAP to print series 1, 8, 27……n terms.
28. WAP to print series 21, 24,27 …..n terms.
29. WAP to print series 2-4+6-8…..n terms.
30. WAP to print Fibonacci series 1,1,2,3,…n terms
31. WAP to print power of number entered as input.
32. WAP to find factorial of number entered as input.
33. WAP to print following patterns upto n terms.:-
1 1 1234 4444 1
12 22 123 333 23
123 333 12 22 456
1234 4444 1 1 78910
4 4321 A A ABCD DDDD
43 321 AB BC ABC CCC
432 21 ABC DEF AB BB
4321 1 ABCD GHIJ A A
DCBA 1234 4 A 1 1
DCB 234 34 BB 1 2 1 01
DC 34 234 CCC 1 2 3 2 1 101
D 4 1234 DDDD 1 2 3 4 3 2 1 0101
A 12321
ABA 121
ABCBA 1
ABCDBCA
34. WAP to find number entered as input is prime or composite.
35. WAP to check number entered as input is ARMSTRONG or not.
36. WAP to check number entered as input is PERFECT number or not.
37. WAP to reverse the number entered as input.
38. WAP to find sum of digits for number entered as input.
39. WAP to check number entered as input is palindrome or not.
40. WAP to print series of odd numbers using while loop statements.
41. WAP to print series of even numbers using do….while loop statements.

More Related Content

What's hot

Solucion compendio 4
Solucion compendio 4Solucion compendio 4
Solucion compendio 4cannia
 
English mathematic VAM Method
English mathematic VAM MethodEnglish mathematic VAM Method
English mathematic VAM MethodShe Loeman
 
Crash management
Crash managementCrash management
Crash managementAhmed Gamal
 
Household behavior & Consumer choice
Household behavior  &  Consumer choiceHousehold behavior  &  Consumer choice
Household behavior & Consumer choicemohamedosman370
 
Step by Step process of drawing iosmetric view to Orthographic view
Step by Step process of drawing iosmetric view to Orthographic viewStep by Step process of drawing iosmetric view to Orthographic view
Step by Step process of drawing iosmetric view to Orthographic viewProf. S.Rajendiran
 
SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2John Ham
 
Distribution Law Mathematics
Distribution Law MathematicsDistribution Law Mathematics
Distribution Law MathematicsHelvyEffendi
 
Booth multiplication
Booth multiplicationBooth multiplication
Booth multiplicationM Madan Gopal
 
Mathematics Class 6 Paper
Mathematics Class 6 PaperMathematics Class 6 Paper
Mathematics Class 6 PaperArvind Saini
 
Numerical methods and programming
Numerical methods and programmingNumerical methods and programming
Numerical methods and programmingVaibhav Patil
 
5.1.5 Rlc Example 1
5.1.5 Rlc Example 15.1.5 Rlc Example 1
5.1.5 Rlc Example 1Talia Carbis
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithmknightnick
 
Chapter 2 section 1
Chapter 2 section 1Chapter 2 section 1
Chapter 2 section 1pebbles2297
 
How to: Regression & Correlation
How to: Regression & CorrelationHow to: Regression & Correlation
How to: Regression & CorrelationRadziah Adam
 
Moving Straight Ahead 2.3
Moving Straight Ahead 2.3Moving Straight Ahead 2.3
Moving Straight Ahead 2.3Kathy Favazza
 

What's hot (19)

Solucion compendio 4
Solucion compendio 4Solucion compendio 4
Solucion compendio 4
 
English mathematic VAM Method
English mathematic VAM MethodEnglish mathematic VAM Method
English mathematic VAM Method
 
Cash flow
Cash flowCash flow
Cash flow
 
Ch25 18
Ch25 18Ch25 18
Ch25 18
 
Crash management
Crash managementCrash management
Crash management
 
Household behavior & Consumer choice
Household behavior  &  Consumer choiceHousehold behavior  &  Consumer choice
Household behavior & Consumer choice
 
Taller cálculo diferencial
Taller cálculo diferencialTaller cálculo diferencial
Taller cálculo diferencial
 
Step by Step process of drawing iosmetric view to Orthographic view
Step by Step process of drawing iosmetric view to Orthographic viewStep by Step process of drawing iosmetric view to Orthographic view
Step by Step process of drawing iosmetric view to Orthographic view
 
SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2
 
Distribution Law Mathematics
Distribution Law MathematicsDistribution Law Mathematics
Distribution Law Mathematics
 
Booth multiplication
Booth multiplicationBooth multiplication
Booth multiplication
 
Mathematics Class 6 Paper
Mathematics Class 6 PaperMathematics Class 6 Paper
Mathematics Class 6 Paper
 
Hyperbola
HyperbolaHyperbola
Hyperbola
 
Numerical methods and programming
Numerical methods and programmingNumerical methods and programming
Numerical methods and programming
 
5.1.5 Rlc Example 1
5.1.5 Rlc Example 15.1.5 Rlc Example 1
5.1.5 Rlc Example 1
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
Chapter 2 section 1
Chapter 2 section 1Chapter 2 section 1
Chapter 2 section 1
 
How to: Regression & Correlation
How to: Regression & CorrelationHow to: Regression & Correlation
How to: Regression & Correlation
 
Moving Straight Ahead 2.3
Moving Straight Ahead 2.3Moving Straight Ahead 2.3
Moving Straight Ahead 2.3
 

Similar to c language programing

BUSINESS STATISTICS IMPORTANT QUESTIONS LIST
BUSINESS STATISTICS IMPORTANT QUESTIONS LISTBUSINESS STATISTICS IMPORTANT QUESTIONS LIST
BUSINESS STATISTICS IMPORTANT QUESTIONS LISTRAJASEKHAR REDDY
 
Security portfolio analysis ,risk return concept problem
Security portfolio analysis ,risk return concept problemSecurity portfolio analysis ,risk return concept problem
Security portfolio analysis ,risk return concept problem22mba089
 
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersAnswers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersSheila Sinclair
 
Isc computer project final upload last
Isc computer project final upload lastIsc computer project final upload last
Isc computer project final upload lastArunav Ray
 
Microprocessor lab
Microprocessor labMicroprocessor lab
Microprocessor labKD030303
 
ACMS TV Ratings Midterm Angelini
ACMS TV Ratings Midterm AngeliniACMS TV Ratings Midterm Angelini
ACMS TV Ratings Midterm AngeliniBrandon Angelini
 
ADCMT Digital multimeter Catalog 7461 a-7451a Nihon Denkei
ADCMT Digital multimeter Catalog 7461 a-7451a  Nihon DenkeiADCMT Digital multimeter Catalog 7461 a-7451a  Nihon Denkei
ADCMT Digital multimeter Catalog 7461 a-7451a Nihon DenkeiNIHON DENKEI SINGAPORE
 
Microeconomics cost numerical.pptx
Microeconomics cost numerical.pptxMicroeconomics cost numerical.pptx
Microeconomics cost numerical.pptxRahulSingh890642
 
Survey On Two-Term Dot Product Of Multiplier Using Floating Point
Survey On Two-Term Dot Product Of Multiplier Using Floating PointSurvey On Two-Term Dot Product Of Multiplier Using Floating Point
Survey On Two-Term Dot Product Of Multiplier Using Floating PointIRJET Journal
 
Lecture 3 Graphs.ppt
Lecture 3 Graphs.pptLecture 3 Graphs.ppt
Lecture 3 Graphs.pptABCraftsman
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptskatiarrahaman
 

Similar to c language programing (20)

BUSINESS STATISTICS IMPORTANT QUESTIONS LIST
BUSINESS STATISTICS IMPORTANT QUESTIONS LISTBUSINESS STATISTICS IMPORTANT QUESTIONS LIST
BUSINESS STATISTICS IMPORTANT QUESTIONS LIST
 
Security portfolio analysis ,risk return concept problem
Security portfolio analysis ,risk return concept problemSecurity portfolio analysis ,risk return concept problem
Security portfolio analysis ,risk return concept problem
 
Trabajo estadistica
Trabajo estadisticaTrabajo estadistica
Trabajo estadistica
 
My Sql
My Sql My Sql
My Sql
 
63610-80-20 CalibrationTC
63610-80-20 CalibrationTC63610-80-20 CalibrationTC
63610-80-20 CalibrationTC
 
Cs practical file
Cs practical fileCs practical file
Cs practical file
 
Sql lab experiments
Sql lab experimentsSql lab experiments
Sql lab experiments
 
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And EngineersAnswers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
Answers To Selected Exercises For Fortran 90 95 For Scientists And Engineers
 
Isc computer project final upload last
Isc computer project final upload lastIsc computer project final upload last
Isc computer project final upload last
 
Unit 3 review_session
Unit 3 review_sessionUnit 3 review_session
Unit 3 review_session
 
Eco
EcoEco
Eco
 
Microprocessor lab
Microprocessor labMicroprocessor lab
Microprocessor lab
 
ACMS TV Ratings Midterm Angelini
ACMS TV Ratings Midterm AngeliniACMS TV Ratings Midterm Angelini
ACMS TV Ratings Midterm Angelini
 
ADCMT Digital multimeter Catalog 7461 a-7451a Nihon Denkei
ADCMT Digital multimeter Catalog 7461 a-7451a  Nihon DenkeiADCMT Digital multimeter Catalog 7461 a-7451a  Nihon Denkei
ADCMT Digital multimeter Catalog 7461 a-7451a Nihon Denkei
 
Microeconomics cost numerical.pptx
Microeconomics cost numerical.pptxMicroeconomics cost numerical.pptx
Microeconomics cost numerical.pptx
 
Survey On Two-Term Dot Product Of Multiplier Using Floating Point
Survey On Two-Term Dot Product Of Multiplier Using Floating PointSurvey On Two-Term Dot Product Of Multiplier Using Floating Point
Survey On Two-Term Dot Product Of Multiplier Using Floating Point
 
Lecture 3 Graphs.ppt
Lecture 3 Graphs.pptLecture 3 Graphs.ppt
Lecture 3 Graphs.ppt
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.ppt
 
Numbersystemsppt 181023140730
Numbersystemsppt 181023140730Numbersystemsppt 181023140730
Numbersystemsppt 181023140730
 
Number systems ppt
Number systems pptNumber systems ppt
Number systems ppt
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 

c language programing

  • 1. 1. WAP to calculate addition of two given values and display result on output screen. [without scanf( )]. 2. WAP to calculate average of 5 given float values and display result on output screen. [without scanf( )]. 3. WAP to take input for two user-defined values and perform following calculations. [take i/p using scanf( )]. - add=a+b - sub=a-b - mul=a*b - div=a/b 4. WAP to calculate area of circle and circumference of circle according to value of radius given as input. [Area=3.14*R*R ] [Circumference=2*3.14*R]. 5. WAP to calculate area of rectangle and perimeter of rectangle according to value of length & breadth given as input. [Area=L*B ] [Perimeter=2*(L+B)]. 6. WAP to calculate simple interest according to value of principle, rate of interest & no of years given as input. [SI = (p*r*n)/100]. 7. WAP to convert temperature from Celsius to Fahrenheit. [F=(C*1.8)+32] 8. WAP to calculate volume of cylinder according to radius & height entered as input. [V=3.14*R*R*H]. 9. WAP to swap values of two variables using third variable. 10. WAP to swap values of two variables without using temp. 11. WAP to check whether number entered is even or odd. 12. WAP to find largest number from 2 numbers entered as input. 13. WAP to find smallest from 2 numbers entered as input. 14. WAP to check whether year entered is leap year or not. [The year entered as input should be of four digits]. 15. WAP which takes marks of 5 subjects & roll-no as input and calculate total & percentage also print result in terms of [distinction (>=70) , first-class(>=60 & <=70),second-class(>=50 & <=60),pass-class(>=45 & <=50) else fail]. [elseif ladder] 16. A cloth showroom has announced the following discounts on purchase of cloth worth Rs as follow:-  If purchase amount if less than 50 customer will not get any discount.  Display amount before discount, discount offered & amount after discount to be paid by customer. PURCHASE AMOUNT DISCOUNT RATES 51 – 100 5% 101-200 7.5% 201-300 10% Above 300 15% 17. An electric power distribution company charges its customer as follow: Take input for customer number & consumption units. Consumption Units Rates of charge 0-200 Rs. 0.50 per unit 201-400 Rs 100 plus Rs 0.65 per unit excess of 200 401-600 Rs 230 plus Rs 0.80 per unit excess of 400 601 and above Rs 390 plus Rs 1.00 per unit excess of 600
  • 2. 18. WAP to create choice based calculator which takes input for two values and performs calculation for [+,-,*, /]. [switch case & else if ladder]. 19. WAP to check whether number entered is positive, negative or zero. 20. WAP to create choice based converter which takes input for distance in kM and carries conversion to [m, cm, mm, feet & inch]. [switch case][make use of goto statement] 21. WAP to find largest from 3 numbers entered as input. [elseif ladder & nesting] 22. WAP to find smallest from 3 numbers entered as input. 23. WAP to print series of odd numbers from 1 to n terms find summation and count. 24. WAP to print series of even numbers from 2 to n terms. Find summation and count. 25. WAP to print series 1,4,9,…..n terms 26. WAP to print series 1,11,111,…..n terms 27. WAP to print series 1, 8, 27……n terms. 28. WAP to print series 21, 24,27 …..n terms. 29. WAP to print series 2-4+6-8…..n terms. 30. WAP to print Fibonacci series 1,1,2,3,…n terms 31. WAP to print power of number entered as input. 32. WAP to find factorial of number entered as input. 33. WAP to print following patterns upto n terms.:- 1 1 1234 4444 1 12 22 123 333 23 123 333 12 22 456 1234 4444 1 1 78910 4 4321 A A ABCD DDDD 43 321 AB BC ABC CCC 432 21 ABC DEF AB BB 4321 1 ABCD GHIJ A A DCBA 1234 4 A 1 1 DCB 234 34 BB 1 2 1 01 DC 34 234 CCC 1 2 3 2 1 101 D 4 1234 DDDD 1 2 3 4 3 2 1 0101 A 12321 ABA 121 ABCBA 1 ABCDBCA 34. WAP to find number entered as input is prime or composite. 35. WAP to check number entered as input is ARMSTRONG or not. 36. WAP to check number entered as input is PERFECT number or not. 37. WAP to reverse the number entered as input. 38. WAP to find sum of digits for number entered as input. 39. WAP to check number entered as input is palindrome or not. 40. WAP to print series of odd numbers using while loop statements. 41. WAP to print series of even numbers using do….while loop statements.