Examlex

Solved

Rewrite the Following Code Fragment Using a for Loop Instead

question 23

Short Answer

Rewrite the following code fragment using a for loop instead of a while loop.
int i = 0;
while(i < 50) {
System.out.println(i);
i+=2;
}


Definitions:

Id

In Freudian psychoanalysis, the part of the mind which is the source of instinctual impulses and demands for immediate satisfaction of basic needs.

Metaphor

A figure of speech in which a word or phrase is applied to an object or action to which it is not literally applicable, to suggest a resemblance.

Superego

In psychoanalytic theory, the part of the personality that represents moral standards and ideals, acting as a conscience.

Moral Guardian

An individual or entity that promotes and enforces traditional ethical standards and values within a community or society.

Related Questions