Please help me, Im using codeblocks 16 and I dont know why this code doesnt print a square, is just a square! Another thing is how can I improve this code? Im still learning please dont be mad at me thanks so much for you time
#include <iostream>
using namespace std;
int main () {
char a = 'a', d = ' ';
int b = 0, c = 0;
while (c < 5) {
cout << a;
c = c + 1;
}
cout << endl;
c = 0;
while (c < 3) {
cout << a;
while (b < 3) {
cout << d;
b = b + 1;
}
cout << a << endl;
c = c + 1;
}
c = 0;
while (c < 5) {
cout << a;
c = c + 1;
}
cout << endl;
return 0;
}