How to loop increment and decrement of certain number and or of number of numbers. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

How to loop increment and decrement of certain number and or of number of numbers.

Hello. I am trying to loop through inputed numbers against a memory allocated number. Say the memory allocated is 46664 and 43334 was inputed, I want to count to the increment of the memory allocated if input is less than the memory allocated. And count to the decrement of memory allocated if input is greater than memory allocated and print the count down or count up. e.g FBX = 46664 If FBX < 46664:      FBX +=46664 Else:      FBX -=46664 Using A while loop and some conditions. Please help me.

4th Aug 2021, 6:02 AM
Borwonyc
Borwonyc - avatar
1 ответ
+ 2
Borwonyc I don't understand your question. Could you please add some more clarity to it?
4th Aug 2021, 6:33 AM
Calvin Thomas
Calvin Thomas - avatar