Ирина Эланс
[на 100% верно] const n = 30; type vector = array [1..n] of integer; var a, b, c: vector; k: integer; Задача. Если векторы a и b различны, то переменной k присвоить их скалярное произведение, иначе в вектор c переписать элементы массива a. (Решение → 15302)
Описание
Делаю все виды работ для ТУСУР! Обращайтесь!
const n = 30;
type vector = array [1..n] of integer;
var a, b, c: vector; k: integer;
Задача. Если векторы a и b различны, то переменной k присвоить их скалярное произведение, иначе в вектор c переписать элементы массива a.
Какая из следующих программ решает эту задачу?
...
if a<>b then k:=a*b else c:=a;
...
...
{t описана как булевская переменная; i имеет тип integer}
t:=true; k:=0;
for i:=1 to n do
if a[i]<>b[i] then t:=false;
if t then c:=a
else for i:=1 to n do k:=k+a[i]*b[i];
...
...
{t описана как булевская переменная; i имеет тип integer}
for i:=1 to n do
if a[i]<>b[i] then t:=false else t:=true;
k:=0;
if t then for i:=1 to n do c[i]:=a[i] else for i:=1 to n do k:=k+a[i]*b[i];
...
![Описание
Делаю все виды работ для ТУСУР! Обращайтесь!const n = 30;type vector = array [1..n] of integer;var a, b, c: vector; k: integer;Задача. Если векторы a и b различны, то переменной k присвоить их скалярное произведение, иначе в вектор c переписать элементы массива a.Какая из следующих программ решает эту задачу? ...if a<>b then k:=a*b else c:=a;... ...{t описана как булевская переменная; i имеет тип integer}t:=true; k:=0;for i:=1 to n doif a[i]<>b[i] then t:=false;if t then c:=aelse for i:=1 to n do k:=k+a[i]*b[i];... ...{t описана как булевская переменная; i имеет тип integer}for i:=1 to n doif a[i]<>b[i] then t:=false else t:=true;k:=0;if t then for i:=1 to n do c[i]:=a[i] else for i:=1 to n do k:=k+a[i]*b[i];...
[на 100% верно] Complete the sentence with the negative Present Perfect form of the verb according to its meaning. They/not receive/statistics data/on sales.[на 100% верно] const n = 30; type vector = array [1..n] of integer; var a, b, c: vector; k: integer; Задача. Если векторы a и b различны, то переменной k присвоить их скалярное произведение, иначе в вектор c переписать элементы массива a.[на 100% верно] Identify true, false or not stated statements according to the text The Russian Federation. The country is rich in natural resources. The state consists of 85 federal subjects.[на 100% верно] I'm very good at sport, ... I'm terrible at maths.[на 100% верно] Put the adjective or adverb in brackets into comparative or superlative form according to the meaning. In my opinion, a deer moves ... of all the animals. (graceful)[на 100% верно] Put the adjective or adverb in brackets into comparative or superlative form according to the meaning. Mrs. Pedrido speaks .... than her husband, but her daughter speaks the most fluently of the whole family. (fluent)[на 100% верно] Put the adjective or adverb in brackets into comparative or superlative form according to the meaning. That gold necklace is the most expensive one in the whole store. (expensive)[на 100% верно] Complete the positive sentence with the Present Simple form of the verb according to its meaning. One of my colleagues ... (работает) for several different companies. (work)[на 100% верно] Complete the sentence with the full negative Present Perfect form of the verb according to its meaning. I/not check/my/credit history/yet.[на 100% верно] Complete the sentence with the full negative Present Progressive form of the verb according to its meaning. The meeting .... (не состоится) tomorrow morning. (not take place) [на 100% верно] Complete the sentence with the full negative Present Simple form of the verb according to its meaning. Michael ... (не встречается) international customers on his job. (not meet)[на 100% верно] Complete the sentence with the full negative Present Simple form of the verb according to its meaning. My business ... (не существует) without my partners. (not exist)[на 100% верно] Complete the sentence with the full negative Present Simple form of the verb according to its meaning. Our company .... (не предоставляет) new recruits an information pack. (not give)[на 100% верно] Complete the sentence with the full Present Progressive form of the verb according to its meaning. I ... (готовлю) the presentation about the history of our company. (prepare)](/assets/img/1.png)
- [на 100% верно] Complete the sentence with the negative Present Perfect form of the verb according to its meaning. They/not receive/statistics data/on sales.
- [на 100% верно] const n = 30; type vector = array [1..n] of integer; var a, b, c: vector; k: integer; Задача. Если векторы a и b различны, то переменной k присвоить их скалярное произведение, иначе в вектор c переписать элементы массива a.
- [на 100% верно] Identify true, false or not stated statements according to the text The Russian Federation. The country is rich in natural resources. The state consists of 85 federal subjects.
- [на 100% верно] I'm very good at sport, ... I'm terrible at maths.
- [на 100% верно] Put the adjective or adverb in brackets into comparative or superlative form according to the meaning. In my opinion, a deer moves ... of all the animals. (graceful)
- [на 100% верно] Put the adjective or adverb in brackets into comparative or superlative form according to the meaning. Mrs. Pedrido speaks .... than her husband, but her daughter speaks the most fluently of the whole family. (fluent)
- [на 100% верно] Put the adjective or adverb in brackets into comparative or superlative form according to the meaning. That gold necklace is the most expensive one in the whole store. (expensive)
- [на 100% верно] Complete the positive sentence with the Present Simple form of the verb according to its meaning. One of my colleagues ... (работает) for several different companies. (work)
- [на 100% верно] Complete the sentence with the full negative Present Perfect form of the verb according to its meaning. I/not check/my/credit history/yet.
- [на 100% верно] Complete the sentence with the full negative Present Progressive form of the verb according to its meaning. The meeting .... (не состоится) tomorrow morning. (not take place)
- [на 100% верно] Complete the sentence with the full negative Present Simple form of the verb according to its meaning. Michael ... (не встречается) international customers on his job. (not meet)
- [на 100% верно] Complete the sentence with the full negative Present Simple form of the verb according to its meaning. My business ... (не существует) without my partners. (not exist)
- [на 100% верно] Complete the sentence with the full negative Present Simple form of the verb according to its meaning. Our company .... (не предоставляет) new recruits an information pack. (not give)
- [на 100% верно] Complete the sentence with the full Present Progressive form of the verb according to its meaning. I ... (готовлю) the presentation about the history of our company. (prepare)