I want to print variable from right. This is my code to show '#' symbol:
static void printNumberSignVertical(int n, boolean newLine){
for(int i = 0; i < n; i++){
System.out.print('#');
}
if(newLine){
System.out.println("");
}
}
and then this is my output :
I want to print symbol '#' from the right. How can i make that symbol printed from right to left?
this is my representation how the print order is desired :
it starts from 1st one.