[ create a new paste ] login | about

Link: http://codepad.org/y1mcS8Sf    [ raw code | output | fork ]

spikexp - C++, pasted on Nov 22:
#include <iostream> 

using namespace std;

int main()
{
	int numberOfCarac = 5;
	int i, h;

	for(i = 0; i < numberOfCarac; i++)
	{
		for (h = 0; h < i; h++)
		{	
			cout << "*";
		}
		cout << endl;
	}

	for(i = numberOfCarac; i > 0; i--)
	{
		for (h = i; h > 0; h--)
		{	
			cout << "*";
		}
		cout << endl;
	}

	return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10

*
**
***
****
*****
****
***
**
*


Create a new paste based on this one


Comments: