SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
SOLVE WITHOUT UISNG IF-ELSE STATEMENT PLEASE IF POSSIBLE.
Write a C + + program that reads from the user the coefficients of a quadratic equation (a, b, and
c). The program should find and display the roots ( r 1 and r 2 ) of the quadratic equation.
Assume the coefficients input by the user are valid. The quadratic equation: ax x 2 + bx + c = 0
The user should input the values of a , b , and c The program should find and display the roots r l
and r 2 : r 1 = 2 a b + b 2 4 a c r 2 = 2 a b b 2 4 a c

Mais conteúdo relacionado

Mais de aksahnan

sin(4) in tili 10 sie 30.pdf
sin(4) in tili 10 sie 30.pdfsin(4) in tili 10 sie 30.pdf
sin(4) in tili 10 sie 30.pdfaksahnan
 
Simulate on a vertical time axis (with events labeled with the senders.pdf
Simulate on a vertical time axis (with events labeled with the senders.pdfSimulate on a vertical time axis (with events labeled with the senders.pdf
Simulate on a vertical time axis (with events labeled with the senders.pdfaksahnan
 
Singay Copportion hes recorded the following costs for tho vi 101- Toa.pdf
Singay Copportion hes recorded the following costs for tho vi 101- Toa.pdfSingay Copportion hes recorded the following costs for tho vi 101- Toa.pdf
Singay Copportion hes recorded the following costs for tho vi 101- Toa.pdfaksahnan
 
Since the cell making cortisol has a high concentration of cortisol co.pdf
Since the cell making cortisol has a high concentration of cortisol co.pdfSince the cell making cortisol has a high concentration of cortisol co.pdf
Since the cell making cortisol has a high concentration of cortisol co.pdfaksahnan
 
sinckA A nak-ereme inreiter atoud cheose kince it offere.pdf
sinckA A nak-ereme inreiter atoud cheose  kince it offere.pdfsinckA A nak-ereme inreiter atoud cheose  kince it offere.pdf
sinckA A nak-ereme inreiter atoud cheose kince it offere.pdfaksahnan
 
Since dinosaur cannot swim- explain how a fossil can be found on all c.pdf
Since dinosaur cannot swim- explain how a fossil can be found on all c.pdfSince dinosaur cannot swim- explain how a fossil can be found on all c.pdf
Since dinosaur cannot swim- explain how a fossil can be found on all c.pdfaksahnan
 
Simulate the SOP expression- f(W-X-Y-Z)-m(1-2-4-5-6-9-12-14).pdf
Simulate the SOP expression- f(W-X-Y-Z)-m(1-2-4-5-6-9-12-14).pdfSimulate the SOP expression- f(W-X-Y-Z)-m(1-2-4-5-6-9-12-14).pdf
Simulate the SOP expression- f(W-X-Y-Z)-m(1-2-4-5-6-9-12-14).pdfaksahnan
 
SIMs media is specially designed to detect three distinct metabolic pr.pdf
SIMs media is specially designed to detect three distinct metabolic pr.pdfSIMs media is specially designed to detect three distinct metabolic pr.pdf
SIMs media is specially designed to detect three distinct metabolic pr.pdfaksahnan
 
Simulate differential equation dt2d2y-12dtdy5y Simulate the SIR model.pdf
Simulate differential equation dt2d2y-12dtdy5y Simulate the SIR model.pdfSimulate differential equation dt2d2y-12dtdy5y Simulate the SIR model.pdf
Simulate differential equation dt2d2y-12dtdy5y Simulate the SIR model.pdfaksahnan
 
Simple Stains are an indirect staining process most widely used differ.pdf
Simple Stains are an indirect staining process most widely used differ.pdfSimple Stains are an indirect staining process most widely used differ.pdf
Simple Stains are an indirect staining process most widely used differ.pdfaksahnan
 
Situation of facts- Management of conflict situations in the labor are.pdf
Situation of facts- Management of conflict situations in the labor are.pdfSituation of facts- Management of conflict situations in the labor are.pdf
Situation of facts- Management of conflict situations in the labor are.pdfaksahnan
 
Sigma factors recognize the Pribnow Box and the consensus sequence in.pdf
Sigma factors recognize the Pribnow Box and the consensus sequence in.pdfSigma factors recognize the Pribnow Box and the consensus sequence in.pdf
Sigma factors recognize the Pribnow Box and the consensus sequence in.pdfaksahnan
 
Some G-protein receptor systems are associated with a protein known as.pdf
Some G-protein receptor systems are associated with a protein known as.pdfSome G-protein receptor systems are associated with a protein known as.pdf
Some G-protein receptor systems are associated with a protein known as.pdfaksahnan
 
Single acyl chain lipids that can act as detergents are most likely to (1).pdf
Single acyl chain lipids that can act as detergents are most likely to (1).pdfSingle acyl chain lipids that can act as detergents are most likely to (1).pdf
Single acyl chain lipids that can act as detergents are most likely to (1).pdfaksahnan
 
Some analysts break down IDS models even further into four categories.pdf
Some analysts break down IDS models even further into four categories.pdfSome analysts break down IDS models even further into four categories.pdf
Some analysts break down IDS models even further into four categories.pdfaksahnan
 
Solve- 34x-12.pdf
Solve- 34x-12.pdfSolve- 34x-12.pdf
Solve- 34x-12.pdfaksahnan
 
Solve with PL-SQL - 2- List number of customers with their total purch.pdf
Solve with PL-SQL - 2- List number of customers with their total purch.pdfSolve with PL-SQL - 2- List number of customers with their total purch.pdf
Solve with PL-SQL - 2- List number of customers with their total purch.pdfaksahnan
 
solve with solutions solve with solutions Find all minimum SoP expre.pdf
solve with solutions  solve with solutions  Find all minimum SoP expre.pdfsolve with solutions  solve with solutions  Find all minimum SoP expre.pdf
solve with solutions solve with solutions Find all minimum SoP expre.pdfaksahnan
 
Solve using python- Append function not allowed public elass Node f.pdf
Solve using python- Append function not allowed   public elass Node f.pdfSolve using python- Append function not allowed   public elass Node f.pdf
Solve using python- Append function not allowed public elass Node f.pdfaksahnan
 
Solve using Java programming language- ----------------------------.pdf
Solve using Java programming language-   ----------------------------.pdfSolve using Java programming language-   ----------------------------.pdf
Solve using Java programming language- ----------------------------.pdfaksahnan
 

Mais de aksahnan (20)

sin(4) in tili 10 sie 30.pdf
sin(4) in tili 10 sie 30.pdfsin(4) in tili 10 sie 30.pdf
sin(4) in tili 10 sie 30.pdf
 
Simulate on a vertical time axis (with events labeled with the senders.pdf
Simulate on a vertical time axis (with events labeled with the senders.pdfSimulate on a vertical time axis (with events labeled with the senders.pdf
Simulate on a vertical time axis (with events labeled with the senders.pdf
 
Singay Copportion hes recorded the following costs for tho vi 101- Toa.pdf
Singay Copportion hes recorded the following costs for tho vi 101- Toa.pdfSingay Copportion hes recorded the following costs for tho vi 101- Toa.pdf
Singay Copportion hes recorded the following costs for tho vi 101- Toa.pdf
 
Since the cell making cortisol has a high concentration of cortisol co.pdf
Since the cell making cortisol has a high concentration of cortisol co.pdfSince the cell making cortisol has a high concentration of cortisol co.pdf
Since the cell making cortisol has a high concentration of cortisol co.pdf
 
sinckA A nak-ereme inreiter atoud cheose kince it offere.pdf
sinckA A nak-ereme inreiter atoud cheose  kince it offere.pdfsinckA A nak-ereme inreiter atoud cheose  kince it offere.pdf
sinckA A nak-ereme inreiter atoud cheose kince it offere.pdf
 
Since dinosaur cannot swim- explain how a fossil can be found on all c.pdf
Since dinosaur cannot swim- explain how a fossil can be found on all c.pdfSince dinosaur cannot swim- explain how a fossil can be found on all c.pdf
Since dinosaur cannot swim- explain how a fossil can be found on all c.pdf
 
Simulate the SOP expression- f(W-X-Y-Z)-m(1-2-4-5-6-9-12-14).pdf
Simulate the SOP expression- f(W-X-Y-Z)-m(1-2-4-5-6-9-12-14).pdfSimulate the SOP expression- f(W-X-Y-Z)-m(1-2-4-5-6-9-12-14).pdf
Simulate the SOP expression- f(W-X-Y-Z)-m(1-2-4-5-6-9-12-14).pdf
 
SIMs media is specially designed to detect three distinct metabolic pr.pdf
SIMs media is specially designed to detect three distinct metabolic pr.pdfSIMs media is specially designed to detect three distinct metabolic pr.pdf
SIMs media is specially designed to detect three distinct metabolic pr.pdf
 
Simulate differential equation dt2d2y-12dtdy5y Simulate the SIR model.pdf
Simulate differential equation dt2d2y-12dtdy5y Simulate the SIR model.pdfSimulate differential equation dt2d2y-12dtdy5y Simulate the SIR model.pdf
Simulate differential equation dt2d2y-12dtdy5y Simulate the SIR model.pdf
 
Simple Stains are an indirect staining process most widely used differ.pdf
Simple Stains are an indirect staining process most widely used differ.pdfSimple Stains are an indirect staining process most widely used differ.pdf
Simple Stains are an indirect staining process most widely used differ.pdf
 
Situation of facts- Management of conflict situations in the labor are.pdf
Situation of facts- Management of conflict situations in the labor are.pdfSituation of facts- Management of conflict situations in the labor are.pdf
Situation of facts- Management of conflict situations in the labor are.pdf
 
Sigma factors recognize the Pribnow Box and the consensus sequence in.pdf
Sigma factors recognize the Pribnow Box and the consensus sequence in.pdfSigma factors recognize the Pribnow Box and the consensus sequence in.pdf
Sigma factors recognize the Pribnow Box and the consensus sequence in.pdf
 
Some G-protein receptor systems are associated with a protein known as.pdf
Some G-protein receptor systems are associated with a protein known as.pdfSome G-protein receptor systems are associated with a protein known as.pdf
Some G-protein receptor systems are associated with a protein known as.pdf
 
Single acyl chain lipids that can act as detergents are most likely to (1).pdf
Single acyl chain lipids that can act as detergents are most likely to (1).pdfSingle acyl chain lipids that can act as detergents are most likely to (1).pdf
Single acyl chain lipids that can act as detergents are most likely to (1).pdf
 
Some analysts break down IDS models even further into four categories.pdf
Some analysts break down IDS models even further into four categories.pdfSome analysts break down IDS models even further into four categories.pdf
Some analysts break down IDS models even further into four categories.pdf
 
Solve- 34x-12.pdf
Solve- 34x-12.pdfSolve- 34x-12.pdf
Solve- 34x-12.pdf
 
Solve with PL-SQL - 2- List number of customers with their total purch.pdf
Solve with PL-SQL - 2- List number of customers with their total purch.pdfSolve with PL-SQL - 2- List number of customers with their total purch.pdf
Solve with PL-SQL - 2- List number of customers with their total purch.pdf
 
solve with solutions solve with solutions Find all minimum SoP expre.pdf
solve with solutions  solve with solutions  Find all minimum SoP expre.pdfsolve with solutions  solve with solutions  Find all minimum SoP expre.pdf
solve with solutions solve with solutions Find all minimum SoP expre.pdf
 
Solve using python- Append function not allowed public elass Node f.pdf
Solve using python- Append function not allowed   public elass Node f.pdfSolve using python- Append function not allowed   public elass Node f.pdf
Solve using python- Append function not allowed public elass Node f.pdf
 
Solve using Java programming language- ----------------------------.pdf
Solve using Java programming language-   ----------------------------.pdfSolve using Java programming language-   ----------------------------.pdf
Solve using Java programming language- ----------------------------.pdf
 

Último

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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Último (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

SOLVE WITHOUT UISNG IF-ELSE STATEMENT PLEASE IF POSSIBLE- Write a C.pdf

  • 1. SOLVE WITHOUT UISNG IF-ELSE STATEMENT PLEASE IF POSSIBLE. Write a C + + program that reads from the user the coefficients of a quadratic equation (a, b, and c). The program should find and display the roots ( r 1 and r 2 ) of the quadratic equation. Assume the coefficients input by the user are valid. The quadratic equation: ax x 2 + bx + c = 0 The user should input the values of a , b , and c The program should find and display the roots r l and r 2 : r 1 = 2 a b + b 2 4 a c r 2 = 2 a b b 2 4 a c