How to print half-diamond pattern with C++ by using for loop - YouTube

Responsive image
source