I\'m trying to print this big X pattern:
x x x x x x x x x x x x x x x x x
I can\'t figure out
For a little bit of fun:
int main (void) { int i; int w = 7; for (i=1;i<=w*(w+1);i++) printf ( "%c", i % (w+1) == 0 ? '\n' : i % (w) == 0 || i % (w+2) == 1 ? '*' : ' '); }