Ин
Информатика
15.01.2020 08:23
Решено

Запишите в развернутом виде числа: 1. 143511 в 8 2. 143511 в 16

Лучшие ответы
miroslavakoval2
11
4,5(45 оценок)
15.01.2020 07:00
143511₈ = 1×8⁵+4×8⁴+3×8³+5×8²+1×8¹+1×8⁰ 143511₁₆ = 1×16⁵+4×16⁴+3×16³+5×16²+1×16¹+1×16⁰
Оливка134
13
4,4(83 оценок)
15.01.2020 03:22
Const   m=8;   n=6; var   a: array[1..m,1..n] of integer;   st,t: string;   i,j,k,s: integer; begin   write('k='); read(k);   randomize;   writeln('исходная матрица a[',m,',',n,']');   st: ='';   for i: =1 to m do begin       s: =0;       for j: =1 to n do begin           a[i,j]: =random(15)-5; // [-5; 9]           write(a[i,j]: 3);           s: =s+a[i,j]           end;       writeln;       if s> k then begin           str(i,t);           if st='' then st: =t           else st: =st+','+t           end       end;   if st< > '' then writeln('искомые строки: ',st) end. пример k=15 исходная матрица a[8,6]   3 -5  6  8  0  2   1  1  5  2  0  1   0 -1  1  9  5  8   -1 -2 -3  3 -2 -2   8  7  5  6  5  3   8 -1  7 -3  7  3   3 -5  6 -1  0  4   7  1  9  1  4  6 искомые строки: 3,5,6,8
VF85
13
4,4(88 оценок)
15.01.2020 11:19

c++

#include < iostream>

using namespace std;

int main() {

int a, b, c;

cin > > a > > b > > c;

if ((a + b + c) == 180 ) {

  cout < < "these are the angles of the triangle" < < endl;

  if ((a == 90) || (b == 90) || (c == 90)) {

  cout < < "rectangular";

  } else {

  cout < < "not rectangular";

  }

} else {

  cout < < "these are not the angles of the triangle";

}

return 0;

}

Присоединяйся к нам!
Зарегестрируйтесь
Уже есть аккаунт? Войти