I have to make a hollowed out Hour glass out of asterisks

How do i hollow out this hour glass? I'm new and this is REALLY hard to me I've spent countless hours on the construction of multiple shapes and hollowing out is tough concept for me.

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
  for (r = 0; r < 6;r++)
	{
		for (s = 0; s < 0 + 1 * r;s++)
		{
			printf(" ");
		}
		for (a = 0; a < 11 - 2 * r;a++)
		{
			printf("*");
		}
		printf("\n");

	}

	for (r = 0; r < 5; r++)					//I couldn't find out how to only use 1 "", *, and \n but the right answer is shown
	{
		for (s = 0; s < 4 - 1 * r;s++)
		{
			printf(" ");
		}
		for (a = 0; a < 2 * r + 3; a++)
		{
			printf("*");
		}
		printf(" \n");
	}
Topic archived. No new replies allowed.