0

A va B haqiqiy sonlari beringan. Shu sonlarni shunday o’zgartirish kerakki A son kichik B son katta bo'lsin.

Please?

29th Jan 2022, 2:57 PM
Omina Shavkatova
Omina Shavkatova - avatar
4 Respostas
+ 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)
20th Feb 2022, 5:42 AM
CodeStory
CodeStory - avatar
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
29th Jan 2022, 3:31 PM
L.M.Paredes
L.M.Paredes - avatar
0
Thank you
29th Jan 2022, 3:33 PM
Omina Shavkatova
Omina Shavkatova - avatar
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)
20th Mar 2024, 1:22 PM
Umid Ongarov