INF/231 INF231 INF 231 WEEK 3 DISCUSSION 2
- ashford university / INF 231
- 24 May 2018
- Price: $8
- Other / Other
INF 231 WEEK 3 DISCUSSION 2
Discussion 2
Interactive Assignment: Looping Statements |
Java provides three repetitions structures: while, do while and
for. These statements are also known as loops. When would you use a looping
statement? Share an example where a looping statement is needed.
Consider the Java code below, indicate the output that will be
produced:
final int MIN = 10, MAX = 20; int num = 15;
while (num < MAX)
{
num = num + 1;
System.out.println (num):
}
Guided Response: Review several of your
peers’ posts. Respond to at least two of your peers. Compare your answers to
the While Loop code analysis, and evaluate your peers’ analysis identifying
where you feel their answer is correct or not correct. Provide reasoning for
your evaluative comments.