Scrieţi un program c/c++ care citeşte de la tastatură un număr natural, n (n∈[2,102]), și alte

1 answer
Question:

Scrieţi un program c/c++ care citeşte de la tastatură un număr natural, n (n∈[2,102]), și alte numere naturale din intervalul [0,104]: cele n elemente ale unui tablou unidimensional, apoi două numere distincte x și y. programul modifică tabloul în memorie înlocuind cu valoarea lui y fiecare număr x din tabloul citit și cu valoarea lui x fiecare număr y din tabloul citit, celelalte elemente rămânând nemodificate. programul afişează apoi pe ecran elementele tabloului obținut, separate prin câte un spațiu, sau mesajul nemodificat dacă nu s-a realizat nicio modificare.
exemplu: pentru n=7, tabloul (0, 7, 0, 1, 0, 5, 1), x=0 și y=1
se obține tabloul (1, 7, 1, 0, 1, 5, 0).

Answers

ce

Step-by-step explanation:

Similar Solved Works

4 answers

Harsh:Gentle:Blunt:​

Harsh:Gentle:Blunt:​...
4 answers

Researchers interested in the relationship between miles run by cross country runners during the week

Researchers interested in the relationship between miles run by cross country runners during the week and their performance on race day collected data from randomly selected college athletes. The scatterplot displays the observed relationship....
4 answers

The graph shows the death rate of the pneumonic plague in Europe during the 1300s. Pie chart of the death rate of the pneumonic

The graph shows the death rate of the pneumonic plague in Europe during the 1300s. Pie chart of the death rate of the pneumonic plague during the 1300s. The chart shows the plague was 90 percent fatal. Based on the graph, approximately how many people who got pneumonic plague died from it? about 1 i...
4 answers

Solve the equation: y^logy= 1000 y^2​

Solve the equation: y^logy= 1000 y^2​...
3 answers

How many pies would the 2528 pound pumpkin be able to make?

How many pies would the 2528 pound pumpkin be able to make?...
4 answers

Howard is leading a project to commission a new information system that will be used

Howard is leading a project to commission a new information system that will be used by a federal government agency. he is working with senior officials to document and accept the risk of operation prior to allowing use. what step of the risk management framework is howard completing?...
6 answers

Complate with correct form of estar. tu caso, querida julia, no raro. muy frecuente. hay personas que insensibles y no piensan

Complate with correct form of estar. tu caso, querida julia, no raro. muy frecuente. hay personas que insensibles y no piensan en los sentimientos de los demás. tu novio una de esas personas. él una persona muy falsa. tus sentiminetos tú verdaderos y sinceros. él te hace pensar que depri...
8 answers

The sum of an integer and its opposite is always, sometimes, or never equal to zero?

The sum of an integer and its opposite is always, sometimes, or never equal to zero? [tex]The sum of an integer and its opposite is always, sometimes, or never equal to zero?[/tex]...
4 answers

FREE BRAINLIEST ((Answer both questions!))

FREE BRAINLIEST ((Answer both questions!)) [tex]FREE BRAINLIEST!! ill also answer questions that you have posted if you answer these 2 questions co[/tex]...
10 answers

Why did earlier historians consider the medieval period the 'dark ages'?

Why did earlier historians consider the medieval period the "dark ages"?...
3 answers

Two boats leave the same port, heading in opposite directions. One boat travels at 10 miles per hour and the other boat travels

Two boats leave the same port, heading in opposite directions. One boat travels at 10 miles per hour and the other boat travels at 12 miles per hour. Formulate an equation in order to determine how long it will take for the two boats to be 33 miles apart . Solve your equation and show all of your wo...
3 answers

2c2h6(g) + 7o2(g) → 4co2(g) + 6h2o(g) in the equation, if 14 l of ethane (c2h6) and 14 l of oxygen (o2) combined and burned

2c2h6(g) + 7o2(g) → 4co2(g) + 6h2o(g) in the equation, if 14 l of ethane (c2h6) and 14 l of oxygen (o2) combined and burned to completion, which gas will be leftover after the reaction, and what is the volume of that gas remaining...
1 answer

Examine the power. 83 What is the base? What is the exponent? What is the power in expanded form? What is the value of the power?

Examine the power. 83 What is the base? What is the exponent? What is the power in expanded form? What is the value of the power?...
1 answer

What do geologist think happened during the last ice age

What do geologist think happened during the last ice age...
4 answers

(a) The charge of electricity is Rs.80 for the first 20 units and Rs.7 pereach additional unit. Calculate

(a) The charge of electricity is Rs.80 for the first 20 units and Rs.7 per each additional unit. Calculate the cost for 50 units.​...
10 answers

What is saturated solution and how it is prepared

What is saturated solution and how it is prepared...
3 answers

How might influences such as environment, culture, media, and personal values affect a conflict between two people

how might influences such as environment, culture, media, and personal values affect a conflict between two people...
6 answers

PLEASE PLEASE PLEASE ANSWER QUICK PL I NEED HELP WILL GIVE BRAINILESTHow did the cotton gin cause slavery to move west?PLS

PLEASE PLEASE PLEASE ANSWER QUICK PL I NEED HELP WILL GIVE BRAINILEST How did the cotton gin cause slavery to move west? PLS ANSWER IM SO CONFUSED ITS 20 POINTS DO IT...
3 answers

Assume that a company is considering purchasing a new piece of equipment for $240,000 that would have a useful life of 10 years and a salvage value of $24,000. The new equipment would cost $20,000 per year to operate and it would replace an old piece of equipment that costs $55,000 per year to opera...
4 answers

Question 15 1 pts 15) [(7 - 4)^2 Question 15 1 pts 15) [(7 - 4)^2 + 3] + 15+ 3] + 15

Question 15 1 pts 15) [(7 - 4)^2 Question 15 1 pts 15) [(7 - 4)^2 + 3] + 15+ 3] + 15...

-- 0.013660--