How do you contrive an algorithm which solves quadratic equations?

But thats not what perplexes me, I am trying to make a programme that solves simple quadratic equations but i do not know how to write and algorithm for my program to solve it

Example

#include <iostream>
#include <quad>
#include <math>
#include <string>
using namespace std;

int main() 
{
      string a;
      a="Hello World ";
      cout << a;
}

Are you basically asking us to write the complete program for you?

Member Avatar for Search_not

@Moschops
Is it even possible to write a progam that will solve quadratic equations using the rules of math and a few inputted variables and numbers??

Yes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.