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
SOVA2 [1]
3 years ago
8

Write code which prints every number from 1 to 20 a number of times equal to the number itself (e.g. one 1, two 2's...). Every i

ndividual number printed should be separated by a space, and there should be a new line each time the number changes. You should use nested loops to produce your output (it will result in far less code).
Partial sample run:

1
2 2
3 3 3
........

Note: Java
Computers and Technology
1 answer:
Oksi-84 [34.3K]3 years ago
6 0

public class JavaApplication71 {

   

   public static void main(String[] args) {

       for (int i = 1; i <= 20; i++){

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

               System.out.print(i+" ");

           }

           System.out.println("");

       }

   }

   

}

I hope this helps!

You might be interested in
Which statement best describes network security?
Papessa [141]

Answer:

B.network security means all personal information is kept safe the network is not compromised and only authorized users had access Im pretty sure they

Explanation:

network security means all personal information is kept safe the network is not compromised and only authorized users had access Im pretty sure they

6 0
3 years ago
Do like TikTok??????
OlgaM077 [116]

Answer: you should it’s addicting

!!!! ?”!!!!

Explanation:

8 0
3 years ago
Read 2 more answers
A flowchart that depicts the relationships among the input, processing, and output of an AIS is
White raven [17]

Answer:

Option C is the correct answer for the above question.

Explanation:

A system flowchart is a picture form of all the processes of the system or software for which this flowchart is designed. It is used for the detailed design of the input, process, and output of the system. The above question asked about the type of flowchart which is used to tell the relationship between output, processing, and input of the system, which is the system flowchart which is described above. Hence the answer is option c while the other is not correct because--

  • Option 'a' states about an internal control flowchart, which is not the type of the flowchart.
  • Option b states about a document flowchart, which is used to describe the document flow.
  • Option d states about a program flowchart, which is used to describe the flow of the program.
6 0
3 years ago
what is hardware ? Name the four functional hardware of a computer system Define each of them with the help of a diagram​
Tasya [4]

Answer:

There are four main computer hardware components that this blog post will cover: input devices, processing devices, output devices and memory (storage) devices. Collectively, these hardware components make up the computer system.

5 0
3 years ago
Explain why computer users should use the cloud?
Arlecino [84]

Answer:

Explanation:

Developing in the cloud enables users to get their applications to market quickly. Hardware failures do not result in data loss because of networked backups. Cloud computing uses remote resources, saving organizations the cost of servers and other equipment.

hope it helps.

3 0
3 years ago
Other questions:
  • C++ what is wrong with my equation?
    10·1 answer
  • Toshiba Corporation makes computer chips. Toshiba Corporation would be classified as a A. merchandising company. B. manufacturin
    15·1 answer
  • What is the difference between a sequential program and an event-driven program?
    9·1 answer
  • Your Community Supported Agriculture (CSA) farm delivers a box of fresh fruits and vegetables to your house once a week. For thi
    10·1 answer
  • Why do you think it is important to consider ethical considerations when reviewing technology and assessing the impact of partic
    9·1 answer
  • When do you use FTP?
    10·2 answers
  • What should the timing of transition slides be per minute?
    12·1 answer
  • What is a special character when creating a password?
    8·2 answers
  • CLICK ME IF U DARE hehehe
    10·2 answers
  • If my usb could unlock my computer with a tool then could i be able to open it using ip unlock
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!