// 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;

double f(double x)
{
    return x*x;
}

int main()
{
    for(int i = -5; i <= 5; i++)
    {
        double x = i;
        double y = f(x);
        for(int j = 0; j < y; j++)
        {
            cout << " ";
        }
        cout << "*" << endl;
    }
    return EXIT_SUCCESS;
}
