abeldinova85
02.02.2021 06:18

Постройте команду Робот в программе Кумир. Даю 40б


Постройте команду Робот в программе Кумир. Даю 40б

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
timurqwerty
04.11.2020 17:02

var

   a: integer;

begin

   {1}

   readln(a);

   if a > 0 then a := a + 1;

   writeln(a);

   

   {2}

   readln(a);

   if a < 0 then a := a * 2;

   writeln(a);

   

   {3}

   readln(a);

   if a <> 0 then a := a - 4;

   writeln(a);

   

   {4}

   readln(a);

   if a > 0 then a := a + 1

   else a := a - 1;

   writeln(a);

   

   {5}

   readln(a);

   if a = 0 then a := a + 3

   else a := 0;

   writeln(a);

end.

{6}

var

   x, y: real;

begin

   readln(x, y);

   if x > y then x := x * y

   else x := x + y;

   writeln(x);

end.

0,0(0 оценок)
Ответ:
АленаКонева
11.07.2020 08:22
#include <iostream>#include <cstdlib>using namespace std;
int main(){
int *enter = new int;
cout << "Enter x: "; cin >> *enter; const int *x = new int(*enter); *enter = 0; cout << "Enter y: "; cin >> *enter; const int *y = new int(*enter);
int *mat = new int[*x][*y];
for (int i = 0; i < *x; i++){ for (int j = 0; j < *y; j++){ cout << "Enter [" << i << "][" << j << "]: "; cin >> mat[i][j]; }; };
int *max = new int(0);
for (int i = 0; i < *x; i++){ if (mat[*x] > *max){ *max = mat[*x]; }; };}
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота