Hey! I am stuck on a problem in which i have to print an isosceles triangle (two sides equal) with any character. It would be really helpful if someone could tell me the code, the triangle should look like this:
*
***
*****
*******

This is an excercise for you to learn. Being given the code only teaches you to beg for freebies.

It's not a difficult exercise, please make an honest attempt and then if you have problems feel free to ask about them.

Ill give you a hint. You will need to use 2 for loops.

{
for(int x=1; x<=5; x++)

for(int y=1; y<=5; y++)
cout<<"*\n";
some thing like this do correct it and try .

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.