public void set(int index, int element) {
if (index > size) {
break;
}
for (int i = 0; i <= arr.length; i++) {
arr[index] = element;
}
}
задан 2 июн 2018 в 15:48
Потому что вы ничего не «прекращаете»
break указывает на то,что нужно прекратить выполнять цикл или switch,если хотите выйти из функции используйте return
public void set(int index, int element) {
if (index > size) {
return;
}
ответ дан 2 июн 2018 в 15:52
Anton NikolaevAnton Nikolaev
1,4803 золотых знака10 серебряных знаков25 бронзовых знаков
5
Содержание
- Что означает ошибка SyntaxError: ‘break’ outside loop
- Что делать с ошибкой SyntaxError: ‘break’ outside loop
- How to use break in java
- How to Solve Python SyntaxError: ‘break’ outside loop
- Table of contents
- SyntaxError: ‘break’ outside loop
- What is SyntaxError?
- What is a Break Statement?
- Example: If Statement
- Solution
- Summary
- Ошибка Break Outside Loop в Python: Причина и разрешение
- Ошибка Break Outside Loop в Python: Причина и разрешение
- Что значит “сломать” в Python?
- выход:
- Синтаксическая ошибка: разрыв внешнего цикла в Python:
- выход:
- Разрешение для SyntaxError: break outside loop в Python:
- Выход:
- Выход:
- Разница между break, exit и return:
- Вывод: Разорвать Внешний цикл Python
- Break Outside Loop Error in Python: Cause and Resolution
- What does ‘break’ mean in Python?
- output:
- SyntaxError: break outside loop in Python:
- output:
- Resolution for SyntaxError: break outside loop in Python:
- Output:
- Output:
- Difference between break, exit and return:
- Conclusion: Break Outside Loop Python
Что означает ошибка SyntaxError: ‘break’ outside loop
Это значит, что мы пытаемся выйти из цикла, которого нет
Ситуация: мы пишем опросник на Python, и нам важно, чтобы его мог пройти только совершеннолетний. Для этого мы добавляем в код такую логику:
- Спрашиваем про возраст.
- Смотрим, он больше 18 или нет.
- Если нет — останавливаем программу.
- Пишем дальше код, который будет работать, если участнику есть 18 лет и программа не остановилась.
На Python это выглядит так:
Вроде всё логично, но после запуска мы получаем ошибку:
❌ SyntaxError: ‘break’ outside loop
Что это значит: в отличие от многих других языков, команда break в Python используется только для выхода из цикла, а не выхода из программы в целом.
Когда встречается: когда мы хотим выйти из программы в середине её работы, но не знаем как.
Что делать с ошибкой SyntaxError: ‘break’ outside loop
Всё зависит от того, что вы хотите сделать.
Если вы хотите выйти из цикла, то break служит как раз для этого — нужно только убедиться, что всё в порядке с отступами. Например, здесь мы выйдем из цикла, как только переменная станет больше 9:
А если вы хотите закончить работу программы в произвольном месте, то нужно вместо break использовать команду exit() . Она штатно завершит все процессы в коде и остановит программу. Это как раз подойдёт для нашего примера с опросником — теперь программа остановится, если возраст будет меньше 18:
Источник
How to use break in java
break is a keyword in java which is used inside loops( for , while and do-while ).
Please note that break can be used inside loops and switch statement while continue statement can only be used inside loops.
Using break outside a loop or switch will result in a compiler error break cannot be used outside of a loop or a switch.
How break works
As its name suggests, break statement terminates loop execution. It breaks the loop as soon as it is encountered.
Consider the below example.
It contains a loop which executes from 1 to 10 and prints the value of loop counter. Inside the loop, we check for counter value equal to 5.
If it is equal to 5 then break .
Check the output given after the program for better understanding.
Output
Loop iteration: 1
Loop iteration: 2
Loop iteration: 3
Loop iteration: 4
Terminating loop
Outside loop
See that when if condition is met and break is executed, loop statements after break are skipped and the statement after the loop is executed.
break statement can only be used along with an if statement.
break in nested loops
Nested loop means a loop inside another loop. What happens when break is placed inside a nested loop?
Answer is that the loop in which the break statement is written is terminated when break is executed.
Suppose there is Loop1 which contains another loop Loop2.
Now following two conditions may exist :
Scenario 1 : break is placed inside Loop2. When break is executed, then Loop 2 is terminated and Loop1 executes normally.
Scenario 2 : break is placed inside Loop1. When break is executed, then Loop 1 is terminated and hence Loop2 also terminates.
Look at the following code example for Scenario 1.
It contains two loops where one loop is nested. Both loops iterate from 1 to 3 and print the value of their loop counters.
Inner loop executes break when outer loop counter becomes equal to 2.
This means that when outer loop counter is equal to 2, inner loop should terminate but outer loop should execute normally.
Output
Outer Loop iteration: 1
Inner Loop iteration: 1
Inner Loop iteration: 2
Inner Loop iteration: 3
Outer Loop iteration: 2
Terminating inner loop
Outer Loop iteration: 3
Inner Loop iteration: 1
Inner Loop iteration: 2
Inner Loop iteration: 3
Note that when outer loop counter is 2, inner loop terminates and outer loop executes further.
Output
Outer Loop iteration: 1
Inner Loop iteration: 1
Inner Loop iteration: 2
Inner Loop iteration: 3
Outer Loop iteration: 2
Terminating outer loop
Note that when outer loop counter is 2, it terminates and inner loop also does not execute further.
Let’s tweak in :
- break statement can only be used along with an if statement. Use of break without an if will result in a compiler error.
This is because a break placed without any condition will cause the loop to terminate and statements after break will never be executed.
Compiler detects this and it flags an error. - It is not mandatory to use break in switch but it is permissible to do so.
- It is necessary to use break inside an infinite loop otherwise there will be a compiler error.
Reason is that if break is not used inside the loop then it will keep on executing forever and it will not allow the program to finish.
Compiler checks this and raises an error. - If break is not used inside a switch then all cases after the first matching case will be executed but there will be no compiler error in this case.
Hit the clap if the article was useful.
Источник
How to Solve Python SyntaxError: ‘break’ outside loop
The break statement terminates the current loop and resumes execution at the next statement. You can only use a break statement inside a loop or an if statement. If you use a break statement outside of a loop, then you will raise the error “SyntaxError: ‘break’ outside loop”.
Table of contents
SyntaxError: ‘break’ outside loop
What is SyntaxError?
Syntax refers to the arrangement of letters and symbols in code. A Syntax error means you have misplaced a symbol or a letter somewhere in the code. Let’s look at an example of a syntax error:
The ^ indicates the precise source of the error. In this case, we have put the number variable outside of the parentheses for the print function, and the number needs to be inside the parentheses to print correctly.
What is a Break Statement?
Loops in Python allow us to repeat blocks of code. In cases, Sometimes conditions arise where you want to exit the loop, skip an iteration, or ignore a condition. We can use loop control statements to change execution from the expected code sequence, and a break statement is a type of loop control statement.
A break statement in Python brings the control outside the loop when an external condition is triggered. We can put an if statement that determines if a character is an ‘s‘ or an ‘i‘. If the character matches either of the conditions the break statement will run. We can use either a for loop or a while loop. Let’s look at an example where we define a string then run a for loop over the string.
The for loop runs until the character is an ‘s‘ then the break statement halts the loop. Let’s look at the same string example with a while loop.
We get the same result using the while loop.
Example: If Statement
Let’s look at an example where we write a program that checks if a number is less than thirty. We can use an input() statement to get input from the user.
Next, we can use an if statement to check whether the number is less than thirty.
Suppose the number is less than thirty, the program prints a message to the console informing us. Otherwise, a program will run a break statement. Let’s run the program and see what happens:
The program returns the SyntaxError: ‘break’ outside loop because the break statement is not for breaking anywhere in a program. You can only use a break statement within a loop.
Solution
To solve this problem, we need to replace the break statement with an exception that stops the program if the number exceeds thirty and provides an exception message. Let’s look at the revised code.
We replaced the break statement with a raise Exception .
If the number is greater than thirty the program will raise an exception, which will halt the program.
Summary
Congratulations on reading to the end of this tutorial! The error “SyntaxError: ‘break’ outside loop” occurs when you put a break statement outside of a loop. To solve this error, you can use alternatives to break statements. For example, you can raise an exception when a certain condition is met. You can also use a print() statement if a certain condition is met.
Go to the online courses page on Python to learn more about Python for data science and machine learning.
Источник
Ошибка Break Outside Loop в Python: Причина и разрешение
Оператор python break используется для резкого выхода из цикла, вызывая условие.”Синтаксическая ошибка: разрыв вне цикла” происходит, если используется
Автор: Team Python Pool
Дата записи
Ошибка Break Outside Loop в Python: Причина и разрешение
Привет, кодеры!! В этой статье мы узнаем об ошибке цикла “break outside loop” в Python. Мы увидим его причину на некоторых примерах и в конечном итоге узнаем, как устранить эту ошибку. Давайте теперь разберемся в этом подробнее.
Что значит “сломать” в Python?
Оператор break используется для указания Python выйти из цикла. Он обычно используется для внезапного выхода из цикла при срабатывании какого-либо внешнего условия. Оператор break может использоваться в любом типе цикла – while loop и for loop.
выход:
Как мы видим, когда значение переменной становится 5, условие для оператора break срабатывает, и Python резко выходит из цикла.
Синтаксическая ошибка: разрыв внешнего цикла в Python:
Цель оператора break состоит в том, чтобы резко завершить цикл, вызвав условие. Таким образом, оператор break может использоваться только внутри цикла. Он также может быть использован внутри оператора if, но только если он находится внутри цикла. Если кто-то использует оператор break вне цикла, то он получит в своем коде ошибку “Синтаксическая ошибка: ‘break’ outside loop”.
выход:
Мы видим, что возникает синтаксическая ошибка Error: break outside loop. Это происходит потому, что мы использовали оператор break без какого-либо родительского цикла.
Разрешение для SyntaxError: break outside loop в Python:
Причина вышеприведенной ошибки заключается в том, что оператор break не может быть использован нигде в программе. Он используется только для того, чтобы остановить дальнейшее выполнение цикла.
Нам нужно удалить операторы break, чтобы устранить ошибку. Исключение может заменить его. Мы используем исключения, чтобы остановить программу и выдать сообщение об ошибке.
Выход:
Теперь код возвращает исключение, основанное на заданном условии. Когда мы используем исключение, оно останавливает дальнейшее выполнение программы( если срабатывает) и выводит сообщение об ошибке.
Если мы хотим, чтобы программа продолжала дальнейшее выполнение, мы можем просто использовать оператор print.
Выход:
Здесь, благодаря использованию оператора print, программа не останавливается от выполнения.
Разница между break, exit и return:
ПЕРЕРЫВ | ВЫХОД | ВЕРНУТЬ |
Ключевое слово | Системный вызов | Инструкция |
выход из петли | выйдите из программы и верните управление обратно в ОС | возвращает значение из функции |
Вывод: Разорвать Внешний цикл Python
В этой статье мы подробно обсудили Python “break out of loop error.” Мы узнали об использовании оператора break и увидели сцену, в которой может произойти упомянутая ошибка. Поэтому, чтобы избежать этого, мы должны помнить, что использовать оператор break только внутри цикла.
Однако, если у вас есть какие-либо сомнения или вопросы, дайте мне знать в разделе комментариев ниже. Я постараюсь помочь вам как можно скорее.
Источник
Break Outside Loop Error in Python: Cause and Resolution
Hello coders!! In this article, we will be learning about the “break outside loop” loop error in Python. We will see its cause with some examples and will ultimately learn how to resolve this error. Let us now understand it in detail.
What does ‘break’ mean in Python?
The ‘break’ statement is used to instruct Python to exit from a loop. It is commonly used to exit a loop abruptly when some external condition is triggered. The break statement can be used in any type of loop – while loop and for loop.
output:
As we can see, when the value of the variable becomes 5, the condition for the break statement triggers and Python exits the loop abruptly.
SyntaxError: break outside loop in Python:
The purpose of a break statement is to terminate a loop abruptly by triggering a condition. So, the break statement can only be used inside a loop. It can also be used inside an if statement, but only if it is inside a loop. If one uses a break statement outside of a loop, then they will get the “SyntaxError: ‘break’ outside loop” error in their code.
output:
We can see that the error SyntaxError: break outside loop occurs. This is because we have used the break statement without any parent loop.
Resolution for SyntaxError: break outside loop in Python:
The cause of the above error is that the break statement can’t be used anywhere in a program. It is used only to stop a loop from executing further.
We need to remove the break statements in order to solve the error. An exception can replace it. We use exceptions to stop a program and provide an error message.
Output:
The code now returns an exception based on the given condition. When we use an exception, it stops the program from further execution( if triggered) and displays the error message.
If we want the program to continue further execution, we cam simply use a print statement.
Output:
Here, due to the use of print statement, the program does not stop from execution.
Difference between break, exit and return:
BREAK | EXIT | RETURN |
Keyword | System Call | Instruction |
exit from a loop | exit from a program and return the control back to OS | return a value from a function |
Conclusion: Break Outside Loop Python
In this article, we discussed in detail the Python “break out of loop error.” We learned about using the break statement and saw the scene in which the said error can occur. So, to avoid it, we must remember to use the break statement within the loop only.
However, if you have any doubts or questions, do let me know in the comment section below. I will try to help you as soon as possible.
Источник
Подскажите пожалуйста.. где ошибка.. или все тут ошибка ) ,?
public class Solution {
public static void main(String[] args) throws Exception {
int summa=0;
String b=»сумма»;
Scanner sum=new Scanner(System.in);
int a=sum.nextInt();
summa += a;
while («сумма».equals(b)) {
break;
}
System.out.println(summa);//напишите тут ваш код
}
}
package com.javarush.task.task05.task0529;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
/*
Консоль-копилка
*/
public class Solution {
public static void main(String[] args) throws Exception {
int summa=0;
String b=»сумма»;
Scanner sum=new Scanner(System.in);
int a=sum.nextInt();
summa += a;
while («сумма».equals(b)) {
break;
}
System.out.println(summa);//напишите тут ваш код
}
}
Этот веб-сайт использует данные cookie, чтобы настроить персонально под вас работу сервиса. Используя веб-сайт, вы даете согласие на применение данных cookie. Больше подробностей — в нашем Пользовательском соглашении.
break
is a keyword in java which is used inside loops(for
, while
and do-while
).
Please note that break
can be used inside loops and switch
statement while continue statement can only be used inside loops.
Using break
outside a loop or switch will result in a compiler error break cannot be used outside of a loop or a switch.
How break works
As its name suggests, break
statement terminates loop execution. It breaks the loop as soon as it is encountered.
Consider the below example.
It contains a loop which executes from 1 to 10 and prints the value of loop counter. Inside the loop, we check for counter value equal to 5.
If it is equal to 5 then break
.
Check the output given after the program for better understanding.
public class BreakExample { public static void main(String args[]) { for (int counter = 1; counter <= 10; counter++) { if (counter == 5) { System.out.println("Terminating loop"); // print statement will not be executed and loop will terminate break; } System.out.println("Loop iteration: " + counter); } System.out.println("Outside loop"); } }
Output
Loop iteration: 1
Loop iteration: 2
Loop iteration: 3
Loop iteration: 4
Terminating loop
Outside loop
See that when if
condition is met and break
is executed, loop statements after break
are skipped and the statement after the loop is executed.
break
statement can only be used along with an if
statement.
break in nested loops
Nested loop means a loop inside another loop. What happens when break is placed inside a nested loop?
Answer is that the loop in which the break statement is written is terminated when break is executed.
Suppose there is Loop1 which contains another loop Loop2.
Now following two conditions may exist :
Scenario 1 : break
is placed inside Loop2. When break
is executed, then Loop 2 is terminated and Loop1 executes normally.
Scenario 2 : break
is placed inside Loop1. When break
is executed, then Loop 1 is terminated and hence Loop2 also terminates.
Look at the following code example for Scenario 1.
It contains two loops where one loop is nested. Both loops iterate from 1 to 3 and print the value of their loop counters.
Inner loop executes break
when outer loop counter becomes equal to 2.
This means that when outer loop counter is equal to 2, inner loop should terminate but outer loop should execute normally.
public class NestedBreakExample { public static void main(String args[]) { for (int outerLoopCounter = 1; outerLoopCounter <= 3; outerLoopCounter++) { System.out.println("Outer Loop iteration: " + outerLoopCounter); for (int innerLoopCounter = 1; innerLoopCounter <= 3; innerLoopCounter++) { // check if outer loop counter is 2 if (outerLoopCounter == 2) { // print message and terminate inner loop System.out.println("Terminating inner loop"); break; } System.out.println("Inner Loop iteration: " + innerLoopCounter); } } } }
Output
Outer Loop iteration: 1
Inner Loop iteration: 1
Inner Loop iteration: 2
Inner Loop iteration: 3
Outer Loop iteration: 2
Terminating inner loop
Outer Loop iteration: 3
Inner Loop iteration: 1
Inner Loop iteration: 2
Inner Loop iteration: 3
Note that when outer loop counter is 2, inner loop terminates and outer loop executes further.
Have a look at the following code example for Scenario 2.
It contains two loops where one loop is nested. Both loops iterate from 1 to 3 and print the value of their loop counters.
Outer loop executes break
when its loop counter becomes equal to 2. This means that when outer loop counter is equal to 2, it should terminate execution and inner loop should also terminate.
Output given after the program further explains the concept.
public classNestedBreakExample { public static void main(String args[]) { for (int outerLoopCounter = 1; outerLoopCounter <= 3; outerLoopCounter++) { System.out.println("Outer Loop iteration: " + outerLoopCounter); // check if outer loop counter is 2 if (outerLoopCounter == 2) { // print message and terminate outer loop System.out.println("Terminating outer loop"); break; } for (int innerLoopCounter = 1; innerLoopCounter <= 3; innerLoopCounter++) { System.out.println("Inner Loop iteration: " + innerLoopCounter); } } } }
Output
Outer Loop iteration: 1
Inner Loop iteration: 1
Inner Loop iteration: 2
Inner Loop iteration: 3
Outer Loop iteration: 2
Terminating outer loop
Note that when outer loop counter is 2, it terminates and inner loop also does not execute further.
Let’s tweak in :
break
statement can only be used along with anif
statement. Use ofbreak
without anif
will result in a compiler error.
This is because abreak
placed without any condition will cause the loop to terminate and statements afterbreak
will never be executed.
Compiler detects this and it flags an error.- It is not mandatory to use
break
inswitch
but it is permissible to do so. - It is necessary to use
break
inside an infinite loop otherwise there will be a compiler error.
Reason is that ifbreak
is not used inside the loop then it will keep on executing forever and it will not allow the program to finish.
Compiler checks this and raises an error. - If
break
is not used inside aswitch
then all cases after the first matching case will be executed but there will be no compiler error in this case.
Hit the clap if the article was useful.
Что означает ошибка SyntaxError: ‘break’ outside loop
Это значит, что мы пытаемся выйти из цикла, которого нет
Это значит, что мы пытаемся выйти из цикла, которого нет
Ситуация: мы пишем опросник на Python, и нам важно, чтобы его мог пройти только совершеннолетний. Для этого мы добавляем в код такую логику:
- Спрашиваем про возраст.
- Смотрим, он больше 18 или нет.
- Если нет — останавливаем программу.
- Пишем дальше код, который будет работать, если участнику есть 18 лет и программа не остановилась.
На Python это выглядит так:
# запрашиваем возраст
age_txt = input('Введите свой возраст: ')
# переводим введённое значение в число
age = int(age_txt)
# если меньше 18 лет
if age < 18:
# выводим сообщение
print('Вы не можете участвовать в опросе')
# выходим из программы
break
# спрашиваем имя
name_txt = input('Как вас зовут: ')
Вроде всё логично, но после запуска мы получаем ошибку:
❌ SyntaxError: ‘break’ outside loop
Что это значит: в отличие от многих других языков, команда break в Python используется только для выхода из цикла, а не выхода из программы в целом.
Когда встречается: когда мы хотим выйти из программы в середине её работы, но не знаем как.
Что делать с ошибкой SyntaxError: ‘break’ outside loop
Всё зависит от того, что вы хотите сделать.
Если вы хотите выйти из цикла, то break
служит как раз для этого — нужно только убедиться, что всё в порядке с отступами. Например, здесь мы выйдем из цикла, как только переменная станет больше 9:
for i in range(10):
print(i)
if i > 8:
break
А если вы хотите закончить работу программы в произвольном месте, то нужно вместо break
использовать команду exit()
. Она штатно завершит все процессы в коде и остановит программу. Это как раз подойдёт для нашего примера с опросником — теперь программа остановится, если возраст будет меньше 18:
# запрашиваем возраст
age_txt = input('Введите свой возраст: ')
# переводим введённое значение в число
age = int(age_txt)
# если меньше 18 лет
if age < 18:
# выводим сообщение
print('Вы не можете участвовать в опросе')
# выходим из программы
exit()
# спрашиваем имя
name_txt = input('Как вас зовут: ')
Вёрстка:
Кирилл Климентьев
Получите ИТ-профессию
В «Яндекс Практикуме» можно стать разработчиком, тестировщиком, аналитиком и менеджером цифровых продуктов. Первая часть обучения всегда бесплатная, чтобы попробовать и найти то, что вам по душе. Дальше — программы трудоустройства.
Начать карьеру в ИТ
String value = custom.getdob().toString();
if (value == null || value.equals("")) {
holder.item3.setText("-");
break;
}
Я на самом деле переопределяю метод getView, поэтому я не могу разместить return
после моего условия if, поскольку оно говорит, что представление должно быть возвращено, но я хочу выйти из условия if после проверки. так пробовал break
и я получаю эту ошибку «break нельзя использовать вне цикла или переключателя«
break; = > Throws break cannot be used outside of a loop or a switch
return; = > This method must return a result of type View
3 ответы
Зачем тебе вообще нужен break
там? if
блок в любом случае завершился, поэтому управление выйдет из блока.
Если вы хотите вернуть вид вместо break;
, ставить return holder;
(при условии, что держатель является представлением)
break можно использовать только в переключателях и циклах (for/while/do-while)
ответ дан 08 окт ’21, 07:10
Я думаю, что в этом конкретном случае вы можете вернуть null для выхода из метода.
ответ дан 10 апр.
return viewObject;
вы должны использовать. Кажется, что подпись метода
публичный вид getView(){…}
И в нем четко сказано, что он должен возвращать объект View или null. Таким образом, вы можете использовать return null;
или вернуть ожидаемый объект просмотра.
ответ дан 10 апр.
Не тот ответ, который вы ищете? Просмотрите другие вопросы с метками
java
or задайте свой вопрос.
11 Years Ago
Dear experts,
I am trying to code out my assignment but i made a problem with my
break;
within my
if (operator.equals(zero))
.
i have received compilation error stating the following:
HelloWorld.java: break outside switch or loop
Appreciate if someone can point out my mistake. Thank you.
import java.util.*;
public class HelloWorld {
public static void main(String[] args) {
int N; //declare variable to read the number of N lines in the input
int type; // indicate the type
String operator; // indicate if it's AND or OR
int firstBit, secondBit; //indicate the Bits
int zero = 0;
Scanner sc = new Scanner (System.in);
type = sc.nextInt(); // indicate the type
if (type ==1){
N = sc.nextInt();
for (int i=0;i <N; i++){
operator = sc.nextLine(); // read the operator
firstBit = sc.nextInt(); // read first bit
secondBit = sc.nextInt(); // read second bit
}
}
else if (type ==2){
operator = sc.nextLine();
if (operator.equals(zero))
break;
else {
firstBit = sc.nextInt(); // read first bit
secondBit = sc.nextInt(); // read second bit
}
}
else if (type ==3){
//read all the inputs till the end
while(sc.hasNext()){
operator = sc.nextLine(); // read the operator
firstBit = sc.nextInt(); // read first bit
secondBit = sc.nextInt(); // read second bit
}
}
else{
System.out.println("there are no such types");
}
System.out.println(operator + "" + firstBit + "" + secondBit);
}
}
Recommended Answers
The purpose of using break:
To terminate a looping structure and jump to the line following the body of the loop or exit out of a switch-case construct.
Using break anywhere else would be totally illegal. You cant use it to exit an «if».
So think of a different …
Jump to Post
All 4 Replies
11 Years Ago
The purpose of using break:
To terminate a looping structure and jump to the line following the body of the loop or exit out of a switch-case construct.
Using break anywhere else would be totally illegal. You cant use it to exit an «if».
So think of a different mechanism to construct ur if-else construct.
11 Years Ago
Actually i am trying to exit the program
int zero = 0;
if operator.equals(zero);
//exit the program
I have tried using System.exit(1); but it throw an exception in thread.
11 Years Ago
What exception did it throw? Handle it…
11 Years Ago
why dont you do an while command over there?
Reply to this topic
Be a part of the DaniWeb community
We’re a friendly, industry-focused community of developers, IT pros, digital marketers,
and technology enthusiasts meeting, networking, learning, and sharing knowledge.