[code:1gulym0l] while (all_runs <= tr) {
all_runs = all_runs + ipr;
System.out.println(all_runs);
}[/code:1gulym0l]
what are you truing to do in this code snippet?
I am first initializing the all_runs variable to zero
then [b:3o164rxt][u:3o164rxt]tr is the variable holding converted value(from string to integer)[/u:3o164rxt][/b:3o164rxt] of the total score of the match
then i am comparing all_runs with the total score in while loop up to equal to tr value(total_score) and it is going in infinite loop
[color=#FF0000:1e3vcasj]all_runs/ipr[/color:1e3vcasj] has a value of 9 and [color=#FF0000:1e3vcasj]tr [/color:1e3vcasj]has value of 110 that is why its going into the infinite loop.
try to find different way to add them.