loops
in
Programming Questions
•
9 months ago
Hello,
In my code i have 2 loops that print some tekst
Something like this.
if (a < b)
{
printline
a = a + 1;
}
if (d < e)
{
printline
d =d +1;
}
What happens is the print lines first print out from the first loop and after the first time it directly goes in to the second loop and goes back to the first again and so on. I want it to finish the first loop first and after its finished it goes to the second loop. I also tried it with while but the application does not stop looping while the expresion is already false.
In my code i have 2 loops that print some tekst
Something like this.
if (a < b)
{
printline
a = a + 1;
}
if (d < e)
{
printline
d =d +1;
}
What happens is the print lines first print out from the first loop and after the first time it directly goes in to the second loop and goes back to the first again and so on. I want it to finish the first loop first and after its finished it goes to the second loop. I also tried it with while but the application does not stop looping while the expresion is already false.
1