which loop is known as defintie loop
Answers
Answered by
1
Answer:
One type of loop structure is called a “definite loop.” You, the programmer, specify the number of times the loop will loop. In Forth, you do this by specifying a beginning number and an ending number (in reverse order) before the word DO.
Answered by
1
Explanation:
A definite loop is a loop where you know the exact number of iterations prior to entering the loop. Usually, the number of iterations is based on an int variable. For example, public void printRange( int num ) { int count = 0 ; while ( count < num ) { System.out.println( count ) ; count++ ; } }
Similar questions
Social Sciences,
2 months ago
Environmental Sciences,
2 months ago
Math,
2 months ago
Math,
4 months ago
Physics,
4 months ago
Physics,
10 months ago
Math,
10 months ago
Physics,
10 months ago