//I somewhat know how to do 'nested for loops'. I can only do one triangle though...
#include <iostream>
usingnamespace std;
int main()
{
cout<<"Insert A Number...\n" <<endl;
int i;
int j;
cin >> i;
for(i;i<11;i++)
{
cout<<endl;
for(j=1;i>j;j++)
{
cout<<'$';
}
}
for(i;i>0;i--)
{
cout<<endl;
for(j=1;i>j;j++)
{
cout<<'*';
}
}
cin.get();
}