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 15:00
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
Hey so i was just trying out some game hacks so i took a paste from online and built it in my visual studio and then suddenly my computer was working or clicking on stuff on its own am i hacked?
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
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
Questions on the website: 13722363