This is the complete and correct solution:
#include <stdio.h>
puts("bbbb*bbbb");
puts("bbb***bbb");
puts("bb*****bb");
puts("b*******b");
puts("*********");
Please see:
http://www.cplusplus.com/reference/cstdio/puts[
^].
Probably, this solution is more compact that you would expect to get with all your loops and variables. Isn't it not what you want? Then this code sample should teach you to ask questions correctly.
—SA