// Collection of code snippets by Arne VajhÃ¸j 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
    double a, b;
    cout << "Vi skal nu løse en ligning af formen a * x + b = 0" << endl;
    cout << "Indtast a: ";
    cin >> a;
    cout << "Indtast b: ";
    cin >> b;
    cout << "Løsningen er x = " << (-b/a) << endl;
    return EXIT_SUCCESS;
}
