هذي مهمة العداد تنازلي
#Countdown
print('NASA launches rocket and starts countdown:')
print('counting...')
count = 10
while count>=0:
print(count)
count=count-1
print('launched !')
هذي مهمة العداد تنازلي
#Countdown
print('NASA launches rocket and starts countdown:')
print('counting...')
count = 10
while count>=0:
print(count)
count=count-1
print('launched !')
عمل رائع
print('counting...')
count=10
while count>=0:
print(count)
count-=1
print('launched !')
عمل رائع يا أماني
print ("counting")
count = 10
while 0<=count<=10:
print( count)
count =count-1
print ("launching")
عمل رائع يا ياسر
قمت بإصلاح تنسيق الأكواد خاصتك في التعليق باستعمال ```
من فضلك قم بإصلاح تنسيق الأكواد في المهمة الأخرى Scholarship
print("counting...")
count = 10
while count >= 0:
print(count)
count = count - 1
print("launched !")
عمل عداد تنازلي:
c=10
print ('counting...')
while c<= 10:
print (c)
c-=1
print('launched !')
عمل جميل يا jeno
ملاحظة بسيطة: لاحظ ان طبع الارقام لا يتوقف، يعني انك دخلت في حلقة لا متناهية لأن الشرط c<= 10 محقق دائما.
print("counting...")
countTime = 0
while countTime <= 10 :
print(countTime)
countTime = countTime + 1
print("launched !")
مية مية ي حامد
لكن لاحظ أن الكود الذي قمت بكتابته يعد من الـ 0 حتى الـ 10 أي عداد تصاعدي.
هل بإمكانك كتابة كود يقوم بعمل عداد تنازلي من الـ 10 إلى الـ 0 ؟
مـهمـة عـمل عـداد تـنـازلـي …
count=10
print("Counting...")
while(count>=0):
print(count)
count-=1
print("launched !")
مرحبا بك يا فاتن معنا في مجتمع كورتابز
ما شاء الله… عمل مضبوط
أهـلآ فـيكـ يـسـلـمـوا …
#------- Cortabs.Net (While-Loop) #Mission number One By @AntarSidgi -------#
# mission is :
#create countdown for nasa that start with message counting... and coundown from 10 to 0 then print launched !
# Start of Code
#code for print counting...
print('counting...')
#code for countdown loop
count = 10 # we set value of count to 10
while(count >= 0) # we make a while loop while my set num is >= 0 go and check loop again we do (=) to count to 0 !1
print(count) # the condition for py is make space before the orders more than 2 &count is variable cuz no('')
count = count - 1 # if my set num of count >= 0 then sub 1 and go check while loop again
# this print last word launched !
print('launched !') # we remove spacing cuz if space on it the work as while condition then print after any num o/p
# End of Code
بين الـ """
"""
"""
تمام
عمل رائع يا عنتر