What am I doing wrong?

Hey guys! I was trying to make this program where the user inputs the width for an hour-glass diagram. Plus he can also input the symbol with which to make the diagram. I'm having an issue with the spacing ion the program. I can't get it right. I've tried a lot. I'm missing something very obvious here. Please point out my mistake. Thanks in advance!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <iostream>
#include <conio.h>
#include <math.h>
using namespace std;
static int space = 0;
int main()
{
	float width, height;
	int i = 0;
	char sym;
	cout << "Enter symbol: "; cin >> sym;
	cout << "Enter width: "; cin >> width;
	cout << ceil(width / 2);
	cout << endl;
	for (; width > 0; width -= 2)
	{
		cout << "	";
		for (height = width; height > 0; height--)
		{
			cout << sym;
		}
		cout << endl;
		space++;
		if (space != ceil(width/2))
		{
			for (i = 0; i<space; i++)
			{
				cout << " ";
			}
		}
	}
	_getch();
	return 0;
}
closed account (N36fSL3A)
ProTip:
When trying to make text line up in the console refrain from using tab spaces.
O my God! I can't believe it was TAB all along! I'll see this TAB later!! *eyes TAB furiously*

Anyways, thanks man! (Y)
closed account (N36fSL3A)
No problem. Don't forget to hit the solve button so those know that this is solved.
Topic archived. No new replies allowed.