0
int b1 = 0;      // This is supposed to be a running total

System.out.println("*" * (b1));

I know this is wrong but I was wonderingwhether there was a way to do such calculation`

I am trying to multiply the * with a variable (b1) so that it prints * depending on the variable. As the variable increases the amount of * should increase.

Jobin
  • 5,610
  • 5
  • 38
  • 53

0 Answers0