below are my code can anyone help me i stuck at the * part
i want the output like this
9
989
98789
9876789
987656789
... and so on
for (int i = 1; i <= l; i++) {
for (int j = 1; j <= l - i; j++)
System.out.print(" ");
for (int j = 1; j <= (2 * i - 1); j++) {
if((l-j) < l-i){
// here System.out.print("*");
}
else
System.out.print(l - j);
}
System.out.print("\n");
}
// here...