1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VashaNatasha [74]
3 years ago
10

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); } }
Computers and Technology
1 answer:
frutty [35]3 years ago
6 0

Answer:

The first value of i is 0 and last value of i is 20.

Explanation:

The following are the description of a given loop.

  • In this problem, there are two loops one is the internal loop and the other is the external loop
  • In the outer loop, the value of " i" is initialized with "0" So the first value is printed 0 in the console.
  • For one value of "i" all the inner loop is executed.
  • The loop is executed is less equal to 20 that's why the last value of "i" is printed 20 in the console window.

You might be interested in
It is considered good practice to save a presentation before printing it. true false
Ilya [14]
It is true because it is really a good practise to save a presentation before printing it

5 0
3 years ago
You are an inventor. You are taking out an ad in a newspaper because you want people to buy/use your product/invention. Include
goldenfox [79]
The light bulb is important because it helps you see in the dark.

The light bulb is a round object that produces light from energy.

People can't live without the light bulb because it helps you out a lot such as see in the dark like when you do homework at night.

It could help businesses profit because many will want to buy it cause they can be cheap but many will sell and it could help you a lot!
4 0
3 years ago
C++
vichka [17]

Answer:

#include <iostream>

#include <map>  

using namespace std;

int main()

{

   map<int, int> numbers;

   cout << "Enter numbers, 0 to finish" << endl;

   int number;

   while (true) {

       cin >> number;

       if (number == 0) break;

       numbers[number]++;

   }

   for (pair<int, int> element : numbers) {

       std::cout << element.first << ": occurs " << element.second << " times" << std::endl;

   }

}

Explanation:

One trick used here is not to keep track of the numbers themselves (since that is not a requirement), but start counting their occurrances right away. An STL map< > is a more suitable construct than a vector< >.

4 0
3 years ago
An array subscript can be an expression, but only as long as the expression evaluates to what type?
densk [106]

Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer Integer

6 0
3 years ago
What limited the possibilities of game development from a technical viewpoint?
lyudmila [28]

Answer:

1)Estimation of the game project

2) Development of Prototype

.

3) Reproduction Stage

4)Communication

5) Polish

Explanation:

The limited the possibilities of game development from a technical viewpoint are the reason why some of developers in gaming are diverting away into another area of computer technology. Some of these limiting factors are;

1):Estimation of the resources needed for the game development which is hard most especially for video games and some of the reasons is that the industry is fast changing. And there are things to be estimated such as time,is there any need bro change the code.

2)Development of Prototype of the game in other to

Know if a feature is valid can be a problematic process.and to know where to perform modifications.

3) Reproduction Stage:

This one of the main limiting problem in almost every game development , and this usually occur when a game ships, reproduction stage is skipped. And without proper preproduction, there will be no coherence in product.

4) Most of the Video games can be easily ruined by bugs and features that is badly executed. And this is where polishing comes in, polishing can be really demanding.

5 0
3 years ago
Other questions:
  • Typing a ____________ at the beginning of a word will exclude that word when doing a search.
    8·2 answers
  • How can website illustrate cooperations and kidness?
    8·1 answer
  • Does anyone have the problem where you try to watch a video to get your answer but it brings up a thing asking your gender to ma
    6·1 answer
  • Help, please!! A file named "games.txt" exists and has 80 lines of data. You open the file with the following line of code. aFil
    6·1 answer
  • Analyze the following code. // Program 1: public class Test { public static void main(String[] args) { Object a1 = new A(); Obje
    5·1 answer
  • The merge sort algorithm sorts using what technique?
    8·1 answer
  • A trackerball is a pointing device
    9·1 answer
  • 8.5 Edhesive Code Practice
    14·1 answer
  • What version of java do i have installed.
    6·1 answer
  • Pleaseeeee helpppppppp​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!