Question: In this program, what change is required so that output would be this type. You program code should print numbers from 1 to 100 but

In this program, what change is required so that output would be this type.You program code should print numbers from 1 to 100 but only 10 numbers per line

public static void main(String[] args) {

int BankBal=1;

BankBal++;

System.out.printIn("BankBalance is "+BankBal);

BankBal++;

for (BankBal = 1; BankBal<101; BankBal++)

System.out.printIn(BankBal+""):

}

output

BankBalance is 2

1

2

3

......

100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!