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
frosja888 [35]
3 years ago
6

Given two 3x3 arrays of integer, x1 and x2, write the code needed to copy every value from x1 to its corresponding element in x2

.
Computers and Technology
1 answer:
Reika [66]3 years ago
5 0

Answer:

#include<iostream>

#include<iomanip>

using namespacestd;

int main ()

{

int x1[3][3]={1,2,3,4,5,6,7,8,9};

int x2[3][3];

int i,j;

for(i=0;i<3;i++)

for(j=0;j<3;j++)

x2[i][j] = x1[i][j];

cout<<"copy from x1 to x2 , x2 is :";

for(i=0;i<3;i++)

for(j=0;j<3;j++)

cout<<x2[i][j]<<" ";

cout<<endl;

system("pause");

return 0;

}

/* Sample output

copy from x1 to x2 , x2 is :1 2 3 4 5 6 7 8 9

Press any key to continue . . .

*/

Explanation:

You might be interested in
Buying a new computer for which of these reasons is most likely a sound
Svetllana [295]

Answer:

b. you need it to do your homework

Explanation:

3 0
2 years ago
A document with a horizontal dimension greater than its vertical dimension is in _____ orientation.
Juli2301 [7.4K]
The answer is Portrait, or Option Choice C.


Diagonal can be relative to any shape

Sideways can be relative to any shape

Portrait is usually more vertical than horizontal because it is used to depict a person, usually stopping at the bottom of the torso

By process of elimination, Landscape is the answer.  Also, its because Landscape is usually used to depict the Land scape.   What a surprise.  And as you know, their is only so far you can paint vertically , but there is much more to paint horizontally.  Making the canvas more horizontal than vertical.<span />
8 0
3 years ago
Read 2 more answers
Tablets, smartphones, and video game consoles usually have which of the following types of operating systems? distributed multiu
vovikov84 [41]
Embedded.
<span>
Real-time is for thing like your thermostat (Nest) etc.
Distributed is for huge number crunching supercomputers.
Multi-user would mean more than one person was using the device at the same time with a different device.</span>
6 0
3 years ago
Read 2 more answers
The fundamental building block in every Hypertext Markup Language (HTML) document is the _____ tag, which marks a component in t
AVprozaik [17]

Answer:

<div></div>

Explanation:

The <div></div> tag allows you to build containers to the text that you want to include in your html

6 0
3 years ago
Read 2 more answers
Harlequin frogs are an endangered species that live in a small area of Costa Rica. The reasons for the species' decline is unkno
Damm [24]

Answer:

<u>a. The scientists must be careful of how many variables they include in their simulation so they do not cause further harm to the frogs.</u>

Explanation:

It is not statistically accurate to assume that the number of variables included in the simulation would cause further harm to the frogs because we need to <em>remember </em>that a simulation is simply a computerized imitation of a real situation, which is usually not totally alike with a real process.

So in no way from a statistical standpoint, does the scientists' decision on the number of variables causes direct harm to the frogs.

3 0
2 years ago
Other questions:
  • In the u.s.all financial institutions are required to conduct business at a physical location only
    9·1 answer
  • When you enforce restrictions, what must you do immediately?
    12·2 answers
  • Peripherals can be used to output information.<br> True<br> False
    9·2 answers
  • The fundamental difference between a switch and a router is that a switch belongs only to its local network and a router belongs
    10·1 answer
  • Which principle of CSR requires that a business state facts fully and accurately?
    8·1 answer
  • Which word processing tool can help you find synonyms to improve your word choice?
    7·2 answers
  • _____ is a predefined format used for text the can include multiple font formatting features
    13·1 answer
  • Leah and Santana have been requested to print a daily report of scheduled activities. Their supervisor needs to know if each par
    11·1 answer
  • Which TWO of the following are input devices that are parts of a laptop computer?
    9·2 answers
  • Busco a talcotalco38
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!