Upside Down Triangle using C++
Posted by Samath
Last Updated: January 05, 2017

This program print a upside down triangle.

#include <iostream>
using namespace std;

int main()
{
	int i,j;
	for (i = 15; i >= 1; i = i-1)
	{
		for (j = 1; j <= i; j = j+1)
		{
			cout << "*";
		}
		cout << "\n";
	}
	cin.get();
  return 0;
}