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; }