verasokolova16
29.06.2021 23:45

1. Classified as computer generations? 2. The elementary base of computers 1st generation is - …
3. The elementary base of computers 4 generations is - …
4. The elementary base of computers 3rd generation is - …
5. What are the prospects for improvement of technical base of the computer?
6. What is computer architecture? Formulate a definition and decipher it.
7. Draw an analogy between computer architecture and the everyday concept of architecture. What is common and what is the difference?
8. What are the main nodes is a computer?
9. What is the motherboard?
10. The purpose of the printer. The types of printers.

Нажмите на рекламу ниже и сразу увидите ответ
↓
Популярные вопросы:
Ответ:
Кирюха2017
28.08.2021 02:57
/*VS C++*/
#include <iostream>

using namespace std;

int main() {
    setlocale(LC_ALL, "Russian");
    int N, y, i;
    bool Prime;
    cout << "Введите число: "; cin >> N;
    do {
    Prime = true;
    y = N % 10;
    for (i = 2; i <= (sqrt(abs(y))); i++) {
        if (y % i == 0) {
            Prime = false;
            break;
        }
    }
    if ((Prime) & (y != 0) & (y != 1))
        cout << y << " - простое" << endl;
    else
        cout << y << " - не простое" << endl;
    N = N / 10;    
    } while (N != 0);
    system("pause");
    return 0;
}

Проверить, состоит ли пятизначное число из цифр, являющихся простыми числами или нет. сообщить о рез
0,0(0 оценок)
Ответ:
дариямир12
17.05.2022 15:30
Const n=4;
      m=3;
var a: array[,] of integer;
    b: array of integer;
    i,j,k: integer;
begin
  setlength(b,n*m);
  setlength(a,n,m);
  randomize;
  writeln('исходный массив:');
  for i:=0 to n-1 do
  begin
    for j:=0 to m-1 do
      begin 
        a[i,j]:=random(-10,10);
        write(a[i,j]:4);
      end;  
    writeln;
  end;  
// удаление строк массива  
  k:=0;
  for i:=0 to n-1 do
    if a[i,0]<=a[i,m-1] then
    begin
      k:=k+1;
      for j:=0 to m-1 do 
      b[(k-1)*n+j]:=a[i,j];
    end;
// печать нового массива    
  writeln('новый массив:'); 
  setlength(a,k,m);
  for i:=0 to k-1 do
  begin
    for j:=0 to m-1 do
    begin
      a[i,j]:=b[i*n+j];
      write(a[i,j]:4);
    end;   
    writeln;
  end;  
end.

исходный массив:
  -3   5  -5
   2   3   5
  -8   3  -2
   3  -4  -7
новый массив:
   2   3   5
  -8   3  -2
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота