we can create star,number, alphabet,patterns (for, while and do-while) in C++.here we are going to learn how to create a diamond=C++ program for diamond