Ask Question
15 July, 03:55

Edhesive 6.1 Code Practice

+4
Answers (2)
  1. 15 July, 06:21
    0
    I could find an Introduction to Computer Science course online about this question, in this course, in unit 6 and the first lesson is about LOOP.

    Loop in programming is a cycle, we can use a cycle for and cycle while, this depends on our needs.

    For example:

    We could need an increase 1 by 1 in a number, we're going to do an example in the language java.

    In this case, we have the variable "i" equal to 0, this variable going to increase with this code "++i" 1 by 1, with the condition i < 5, If the variables i is less than 5 then increase variable, until "i" be equal to 5, we print the result with the line System. out. println (i);

    would be:

    0

    1

    2

    3

    4

    Until 4 because the condition is always less than 5, we cannot print 5 because is equal to 5

    for (int i = 0; i < 5; + +i) {

    System. out. println (i);

    }
  2. 15 July, 06:50
    0
    What kind of question is this?
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Edhesive 6.1 Code Practice ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers