how can i cout diamond shape # in c++,i get many programs form different web but i didnt got it.....plz make it simple and easy

Recommended Answers

i get many programs form different web but i didnt got it.....

We won't do your homework for you. However, if you post the code that you sto^H^H^Hacquired from the web and point out the parts that you don't understand, we'll be happy to help you "get it".

Jump to Post

All 3 Replies

i get many programs form different web but i didnt got it.....

We won't do your homework for you. However, if you post the code that you sto^H^H^Hacquired from the web and point out the parts that you don't understand, we'll be happy to help you "get it".

I'll post this, I don't think it could be classed as doing homework, I hope.

std::cout << char(4) << '\n';

Here's simple and easy. Read this post about printing out an 'X'. To print a diamond print out the inverted 'V'first.

Be a part of the DaniWeb community

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