Examlex

Solved

What Is the First and Last Value of I to Be

question 18

Multiple Choice

What is the first and last value of i to be displayed by the following code snippet?
Int n = 20;
For (int i = 0; i <= n; i++)
{
For (int j = 0; j <= i; j++)
{
System.out.println("" + i) ;
}
}


Definitions:

Utility

In economics, the satisfaction or benefit derived from the consumption of goods or services.

Ultimate Consumer

The final purchaser and user of a product or service, as opposed to an intermediary or a business buyer.

Newspaper Reporter

A professional tasked with investigating, writing, and reporting news stories for newspapers or news websites.

Plane Ticket

A document issued by an airline or a travel agency to confirm an individual's reservation for a specific flight.

Related Questions