Create an int called num and initialize it to 5000 create


Small Java Program:

Create an int called num and initialize it to 5000.

Create an int called reps and initialize it to 0.

Use a for loop control structure that runs if num is greater than or equal to 250, subtracting 139 from num each iteration and counting how many iterations it takes to reduce num to be less than 250.

Output the final value of reps.

Output the final value of num.

SAMPLE OUTPUT:

"The number of reps was 35"

"The final value of num is 135"

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create an int called num and initialize it to 5000 create
Reference No:- TGS02926217

Expected delivery within 24 Hours