#include <iostream.h>
#include <iomanip.h>
int main()
{
    int x, y[10], i, j;
    //berechne und gib den grafen für y = 0.5 x hoch 2 (gerundet) aus
    for(x=0;x<=9;x++)
    {y[x]=((x*x)*0.5)+0.5;
    cout << y[x] << " ";}
    cout << endl;
    for(i=22;i>=0;i--)
    {
       cout << setw(3) << i << " |" ;
       for(x=0; x<=9; x++) if (y[x]==i) cout << setw(4*x+2) << "+";
       cout << "\n";
       
       
                      }
    cout << "  --------------------------------------\n";
    cout << "      1   2   3   4   5   6   7   8   9";

    
    

cout << "\nProgrammende...";
cin.get (); cin.get();
return(0);    
    }

/*

*/
