0
A va B haqiqiy sonlari beringan. Shu sonlarni shunday o’zgartirish kerakki A son kichik B son katta bo'lsin.
Please?
4 Respuestas
+ 1
a = int(input())
b = int(input())
if a >= b:
a -= b
print('A son B sondan kichik', a, b)
else:
print('B son A sondan katta', b, a)
0
def big(a,b):
before=[a,b]
if (a<b):
a+=(b-a)+1
else:
b+=(a-b)+1
return ('now a '+str(a)+' is bigger than b '+str(b)) if(before[0]<before[1]) else ('now b '+str(b)+' is bigger than a '+str(a))
print(big(14,12))
// "python" don't forget to indicate the language in the questions
0
Thank you
0
A va B butun sonlari berilgan (A<B). A dan B gacha bo‘lgan barcha butun sonlar (A va B ham kiradi) yig‘indisini chiqaruvchi dastur tuzilsin. (masala For (sikl) ga doir)