М
Молодежь
К
Компьютеры-и-электроника
Д
Дом-и-сад
С
Стиль-и-уход-за-собой
П
Праздники-и-традиции
Т
Транспорт
П
Путешествия
С
Семейная-жизнь
Ф
Философия-и-религия
Б
Без категории
М
Мир-работы
Х
Хобби-и-рукоделие
И
Искусство-и-развлечения
В
Взаимоотношения
З
Здоровье
К
Кулинария-и-гостеприимство
Ф
Финансы-и-бизнес
П
Питомцы-и-животные
О
Образование
О
Образование-и-коммуникации

Переведите числа 11,125; 15,75; 22,6875 и 30,375 в систему счисления с основанием 4.

👇
Ответ:
HelpDZ1
HelpDZ1
04.06.2022
11,125 = 23,02 (4cc)
11 | 4
  8 |
|  2
   3

0,| 125 *4
0 | 5     *4
2 | 0

15, 75= 33,3
15 |4
12 |
--- |  3
 3

0, |75 *4
3  |0

22,6875 =112,23
22 | 4
20 |
--- | 5 | 4
  2   4 |--
      --  | 1
       1

0,| 6875 *4
2 |  75     *4
3 | 0

30,375 =132,12
30 | 4
28 |
--- |  7 | 4
 2     4 |--
       --- | 1
        3
0, | 375 *4
1  | 5
2  |0
4,7(48 оценок)
Открыть все ответы
Ответ:
VADIMSTRENDG
VADIMSTRENDG
04.06.2022
Var
 d,m,i,all:integer;
begin
 read(d,m);
 all:=0;
 for i:=12 downto (m+1) do
 begin
  if i=12 then
   all:=all+31;
  if i=11 then
   all:=all+30;
  if i=10 then
   all:=all+31;
  if i=9 then
   all:=all+30;
  if i=8 then
   all:=all+31;
  if i=7 then
   all:=all+31;
  if i=6 then
   all:=all+30;
  if i=5 then
   all:=all+31;
  if i=4 then
   all:=all+30;
  if i=3 then
   all:=all+31;
  if i=2 then
   all:=all+28;
  if i=1 then
   all:=all+31;
 end;
 if i=12 then
   all:=all+31-d;
  if i=11 then
   all:=all+30-d;
  if i=10 then
   all:=all+31-d;
  if i=9 then
   all:=all+30-d;
  if i=8 then
   all:=all+31-d;
  if i=7 then
   all:=all+31-d;
  if i=6 then
   all:=all+30-d;
  if i=5 then
   all:=all+31-d;
  if i=4 then
   all:=all+30-d;
  if i=3 then
   all:=all+31-d;
  if i=2 then
   all:=all+28-d;
  if i=1 then
   all:=all+31-d;
 writeln(all);
end.
4,6(15 оценок)
Ответ:
жасеке
жасеке
04.06.2022
Var
    i1, i2, i3, i4, i5, i6: byte;
    k: Longint;

begin
    for i1 := 0 to 9 do
        for i2 := 0 to 9 do
            for i3 := 0 to 9 do
                for i4 := 0 to 9 do
                    for i5 := 0 to 9 do
                        for i6 := 0 to 9 do
                            if i1 + i2 + i3 = i4 + i5 + i6 then begin
                                Writeln(i1, i2, i3, i4, i5, i6);
                                k := k + 1;
                            end;
    writeln(k);
end.

var
    money: array[1..7]of integer;
    count: array[1..7]of integer;
    s, i: integer;

begin
    money[1] := 1;
    money[2] := 2;
    money[3] := 5;
    money[4] := 10;
    money[5] := 50;
    money[6] := 100;
    money[7] := 500;
   
    write('s = ');
    readln(s);
   
    i := 7;
    repeat
        if s >= money[i] then begin
            s := s - money[i];
            count[i] := count[i] + 1;
        end
        else i := i - 1;
    until s <= 0;
   
    for i := 7 downto 1 do
        if count[i] > 0 then
            writeln(money[i], ' p. = ', count[i], ' шт.')
end.
4,6(19 оценок)
Это интересно:
Новые ответы от MOGZ: Информатика
logo
Вход Регистрация
Что ты хочешь узнать?
Спроси Mozg
Открыть лучший ответ