Okay so this is another question printing patterns but this time using input!
I have to prompt the user and read an odd number from the input. I can only use
System.out.print('*');
System.out.print(' ');
and System.out.println();
I need to maximize my use of repetition and minimize the number of output statements.
for examples:
n = 11
_____*
____***
___*****
__*******
_*********
***********
_*********
__*******
___*****
____***
_____*
n = 7
___*
__***
_*****
*******
_*****
__***
___*
where _ are spaces!
etc.
I haven't even begun this code as i have no idea how to start it!
Please help!