subject

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).

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
You know the right answer?
Scrieţi un program c/c++ care citeşte de la tastatură un număr natural, n (n∈[2,102]), și alte numer...
Questions
question
Health, 17.04.2020 05:22
question
Mathematics, 17.04.2020 05:22
Questions on the website: 13722367