Рома151999
06.01.2022 10:42

Упростите логическое выражение


Упростите логическое выражение

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
dia651
07.08.2022 10:57
1)
Var
n,m,max,min:integer;
Begin
write('Введите число: ');
readln(n);
min:=9;   
max:=0;
while n>0 do 
begin 
m:=n mod 10; 
if m<min then min:=m; 
if m>max then max:=m; 
n:=n div 10; end;   
writeln('Максимальное число: ',max);   
writeln('Минимальное число: ',min);
End.
2)
var
i,count: integer;
n,s:string;
begin
writeln('Введите число: ');
readln(s);
writeln('Введите цифру: ');
readln(n);
for i:=1 to length(s) do
if(s[i]=n)then
count:=count+1;
writeln('Количество раз, когда встречается цифра = ',count);
end.
0,0(0 оценок)
Ответ:
SashaZorikhina
21.04.2021 03:32

###язык Python##

###1##

N=int(input())

if(N<32 and N%3!=0 or N<0):

   print("YES")

else:

   print("NO")

###2##

N=int(input())

if(N%2==0 or N>400 and N<500):

   print("YES")

else:

   print("NO")

   ###3##

N=int(input())

if(len(str(N))==3 and str(N)[-1]=='9'):

   print("YES")

else:

   print("NO")

###4##

N=int(input())

if(N>=345 and N<543 or N%7==0):

   print("YES")

else:

   print("NO")

###5##

N=int(input())

if(N%3==0 or str(N)[-1]=='0'):

   print("YES")

else:

   print("NO")

###6##

N=int(input())

if(N%2==0 and int(str(N)[-2])>5):

   print("YES")

else:

   print("NO")

###7##

N=int(input())

if(N%2!=0 and len(str(N))==3):

   print("YES")

else:

   print("NO")

##8##

a=int(input())

b=int(input())

if(int(str(a)[-4])>int(str(b)[-4])):

   print("YES")

else:

   print("NO")

##9##

a=int(input())

b=int(input())

if(int(str(a)[-3])%2==0 and b%2!=0):

   print("YES")

else:

   print("NO")

##10##

a=int(input())

b=int(input())

if(a%8>4 and b%12<5):

   print("YES")

else:

   print("NO")

##11##

a=int(input())

b=int(input())

if(a%3!=0 and b%3!=0):

   print("YES")

else:

   print("NO")

   ##12##

a=int(input())

b=int(input())

if((a*b)%3==0):

   print("YES")

else:

   print("NO")

##13##

a=int(input())

b=int(input())

if(a%23<14 and b%22>15):

   print("YES")

else:

   print("NO")

##14##

a=int(input())

b=int(input())

if(a%b==0 or b%a==0):

   print("YES")

else:

   print("NO")

##15##

a=int(input())

b=int(input())

if(str(a)[-1]=='6' and str(b)[-4]=='6'):

   print("YES")

else:

   print("NO")

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