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
IceJOKER [234]
3 years ago
8

Write a program that prints the following 45 pairs of numbers:

Computers and Technology
1 answer:
sattari [20]3 years ago
6 0

Answer:

  • Code is in JAVA language. As there is no user input the logic is straightforward.
  • Below is the code along with a detailed explanation of the logic.
  • The class name is Print main save as file as the main class.

Explanation:

Program:-

public class Main{

public static void main(String args[]){

/* There are two for loops...

* First for loop runs from i=1 to i=9

* Second for loop runs from j=1 to j=i.

*

*/

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

for(int j=1;j<=i;j++){ // j loop runs from j=1 to j=i

/*Prints I and j next to each other*/

System.out.println(i+""+j);

}//for loop of j ends here

}// for loop of I ends here

}

}

You might be interested in
Can someone please tell me how can I code this onto C# on Visual Studio 2019? It’s due tomorrow!!
11111nata11111 [884]

Answer:

i need points

Explanation:

lol

8 0
3 years ago
Multiple layers provide multiple road blocks for a ________.
Hatshy [7]

Individual or other words user and attackers

4 0
3 years ago
You're working on a TV that has a hard coded list of channels (use an enum for this list) and you're asked to create a mechanism
ra1l [238]
Jsjsjsoos I jdkkskso I iDisks I iiddikdk I ididkkd
8 0
3 years ago
We informally define the term corresponding element as follows: The first element and the last element of a list are correspondi
kramer

Answer:

a[i] = a[len(a) - i - 1]

Explanation:

Based on the definition of corresponding elements above,

First element of a list and last element are corresponding :

Using this :

Given a list defined as 'a'

First element of list is at index 0

Last element of a list is at index ; len(a) - 1

For a list containing 10 elements:

Second element corresponds to second to the last element

Second element is at index 1;

Second to the Last element is at index 8

(since indexing starts from 0)

Second element = a[1]

Second to the last element = a[len(a) - i - 1]

Hence,

a[i] = a[len(a) - i - 1]

3 0
3 years ago
What type of operation can be performed on a package that hasbeen built and saved for furtheruse?
forsale [732]

Answer: Password protected

Explanation: Package is the namespace which carries the set of all the related classes and related interfaces. Package class has the right to access the package members. If a package is built and is kept for the future use then it should be made secured so there can be no unauthorized access of the class that package contains,therefore it should be password protected. This will help the class and the members to be in security an can be accessed by authority in future.

5 0
3 years ago
Other questions:
  • All of the following are strategies to help you prepare for standardized test except <br>​
    5·1 answer
  • Create a recursive method, a method that calls itself, that returns the number of vowels that appear in any string given. Keep i
    11·1 answer
  • What does an industry expect of you as an employee?<br><br> At least 3 please!
    13·2 answers
  • It’s been six months since the disk crash at CSM Tech Publishing, and the owner is breathing a little easier because you install
    7·1 answer
  • Name two commercial tools that can make a forensic sector-by-sector duplicate of a drive to a larger drive.
    10·1 answer
  • If somebody is using a laptop at a coffee shop, how are they likely connected to a network?
    11·1 answer
  • One of the factors that influence the effectiveness of chemical sanitizer works effectively between 13° C and 49° C​
    10·1 answer
  • Write a method called removeHighPrice that will go through a provided ArrayList called prices and removes the first price that i
    6·1 answer
  • A device is sending out data at the rate of 1000 bps. How long does it take to send
    12·1 answer
  • Create a file name that to ensure the that the file is easy to find
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!