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, 22.06.2019 20:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
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
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Biology, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
English, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
History, 13.09.2020 14:01
question
History, 13.09.2020 14:01
question
English, 13.09.2020 14:01
question
English, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
question
Mathematics, 13.09.2020 14:01
Questions on the website: 13722367