• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&A Discussions

Write and test a program that solves quadratic equations. A quadratic equation is an equation of the form ax2+ bx + c =0 ,where a,b and c are given coefficient and x is the unknown The coefficients are real number inputs ,so they should be declared of type float or double Since quadratic equations typically have two solutions ,use x1 and x2 for the solutions to be output These should be declared of type double to avoid inaccuracies from round-off error
c++
-1 Vote
3 Answers
28th Jun 2016, 7:19 PM
Ogunjirin Emmanuel
Ogunjirin Emmanuel - avatar
Matt reaches the final round of a treasure hunt. In this, he finds that as he proceeds there are flags with the number written on them at different positions. The difference between two consecutive flags can be either a or b. If he finds the number on the first flag is 0. Given three integer, first one is number of flags present, second is a and third is b. then return all the possible values for last flag for each test case. hunt({3 1 2}) = {2 3 4}
java
0 Votes
2 Answers
6th Aug 2016, 6:23 PM
Sumit Tyagi
Sumit Tyagi - avatar
< Previous1...3132Next >
Hot today
Java certification
2 Votes
Beginner in coding and game development – where should I start?
0 Votes
Coding to automate word documents for technical specifications
1 Votes
I can't understand the bug
0 Votes
What is <p>
1 Votes
Error with code
0 Votes
Create website
0 Votes
Question about creating an exam editing program
2 Votes
Guys I'm a newcomer
1 Votes
Where is my landing page?
0 Votes