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

Расположите выражения сверху вниз в порядке возрастания их значений 1. 931 div 100 2.(1234 div 10)mod 10 3. 931 mod 100 4. (1234 mod 100) mod 10 5.(1234 div 100) mod 10 6. 931 mod 10 7.100 mod 10 8. 100 div 10

👇
Ответ:
kapitan2001
kapitan2001
23.08.2020
1)9
2)12
3)31
4)4
5)2
6)1
7)0
8)10
ответ:7,6,5,4,1,8,2,3.
4,4(18 оценок)
Открыть все ответы
Ответ:
ruzhejnickovan
ruzhejnickovan
23.08.2020

python

13)

for i in range(48):

 if i % 3 == 0:

   print(i)

 elif i % 2 == 0:

   print(i)

 elif i % 7 == 0:

   print(i)

 elif i % 3 == 2:

   print(i)

 elif i % 5 == 3:

   print(i)

14)

from math import floor

for i in range(30, 3000):

 if i / 5 == floor(i / 5) and i / 7 != floor(i / 7):

   print(i)

15)

amount = 0

new = 1000

day = 0

while amount < 30000:

 amount += new

 new *= 2

 day += 1

print(day)

16)

from math import floor

simple = True

number = int(input('Введите число: '))

for i in range(2, number):

 if number / i == floor(number / i):

   simple = False

   break

if simple:

 print('простое')

else:

 print('не простое')

17)

from math import floor

N = int(input('Введите N: '))

M = int(input('Введите M: '))

number = max(N, M)

while True:

 if number / N == floor(number / N) and number / M == floor(number / M):

   print(number)

   break

 else:

   number += 1

18)

from math import floor

for i in [int(i) for i in input('Введите  числа через пробел: ').split()]:

 if i / 4 == floor(i / 4) and i / 7 == floor(i / 7):

   print(i)

19)

number = int(input('Введите число: '))

if number**2 > 18:

 for i in range(number+1, number+11):

   print(i**2)

else:

 print(number)

20)

age = input('Введите возраст: ')

if age < 6:

 print('дошкольник')

 #я в школу пошел в 6 лет

elif 6 <= age < 18:

 print('школьник')

 #закончу школу в 17 лет

elif 18 <= age < 58:

 print('работник')

elif age >= 58:

 print('пенсионер')

 #у нас в Украине в 2017 году пенсионный возраст для женщин составляет 58 лет

#написал эти коментарии чтоб было понятно почему именно эти цифры

21)

from math import floor

number = int(input('Введите число: '))

for i in range(2, number):

 simple = True

 for z in range(2, i):

   if i / z == floor(i / z):

     simple = False

     break

 if simple:

   print(i)

4,6(86 оценок)
Ответ:
masloshick
masloshick
23.08.2020
Romanf romanf отличник 2013-01-10t16: 13: 22+00: 00 1. подумать над алгоритмом 2. вот сам алгоритм: а. спросить у пользователя значения б. расчитать ответ в. выдать ответ на экран 3. написать код в паскале 4. исправить ошибки компиляции 5. протестировать, вводить разные числа 6. обнаружила, что если вводить числа наугад ответ получается отрицательным иногда 7. вставить код проверки введенных пользователем значений 8. убрать ошибки компиляции 9. протестировать 10. готово а вот и сама программа: program aerobus; uses crt; const totalplace = 160; var businessplaces, economyplaces: integer; businessprice, economyprice: real; totalcharge: real; a,b: integer; correctinput: boolean; begin clrscr; businessplaces: =totalplace div 4; economyplaces: = totalplace - businessplaces; writeln('business places count: ', businessplaces); writeln('economy places count: ', economyplaces); correctinput: =false; while not correctinput do begin write('please input business class ticket price: '); readln(businessprice); if(businessprice> 0) then begin correctinput: =true; end else begin writeln('the price should be a positive number, please try again'); end; end; economyprice: =businessprice/2; writeln('economy ticket price is: ', economyprice: 0: 2); correctinput: =false; while not correctinput do begin write('how many business tickets are left? : '); readln(a); if(a> =0) and (a< =businessplaces)then correctinput: =true; if(a< 0) then begin writeln('please input a positive number or 0, please try again'); end; if(a> businessplaces) then begin writeln('please input a number which is less or equal to the tolal business place count, please try again'); end; end; correctinput: =false; while not correctinput do begin write('how many economy tickets are left? : '); readln(b); if(b> =0) and (b< =economyplaces)then correctinput: =true; if(b< 0) then begin writeln('please input a positive number or 0, please try again'); end; if(b> economyplaces) then begin writeln('please input a number which is less or equal to the tolal economy place count, please try again'); end; end; totalcharge: =(businessplaces-a)*businessprice; totalcharge: =totalcharge+(economyplaces-b)*economyprice; writeln('the total charge is: ', totalcharge: 0: 2); writeln; writeln('press enter to exit'); readln; end.
4,6(13 оценок)
Новые ответы от MOGZ: Информатика
logo
Вход Регистрация
Что ты хочешь узнать?
Спроси Mozg
Открыть лучший ответ