ok so I have

#include <iostream> 
#include <cmath>
#include <iomanip>
using namespace std; 

int main()
{


    {
cout << "****";
cout << "***";
cout << "**";
cout << "*";
    }
    {
cout << "*";
cout << "**";
cout << "***";
cout << "****";
    }
    {
cout << "*";
cout << "***";
cout << "*****";
cout << "***";
cout << "*";
    }


system("pause");
return 0;
}

my goal is I amtrying to make a program thats displays 3 triangles

*
**
***
****

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

****
***
**
*

what am I doing wrong ?

Well what are your current results? how do they differ from what you want to have? and why do you have additional "{" tags?

Perhaps you are looking for a line break at the end of each "cout" call? if thats the case use "<< endl;"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.