try this out, much of it is hardcoded and ill leave the input stuff for you to do/play around with, ive used VC++ as i dont have your compiler, but it should work
Code:
#include <iostream>
using namespace std;
int main()
{
int levels = 15;
int mid = 22;
int k =0;
for(int i = 0; i < mid; i++)
{
for(int j = 0; j < i; j++)
{
cout << "*";
}
if(i > levels)
{
if(i > 19)
{
for( k = 0; k < i; k++)
{
cout << "*";
}
}
}
}
for(i = mid; i > 0; i--)
{
for(int j = 0; j < i; j++)
{
cout << "*";
}
if(i > levels)
{
if(i > 19)
{
for( k = 0; k < i; k++)
{
cout << "*";
}
}
}
}
return 0;
}