مشاركة حلول: عمل عداد تنازلي count down

هذي مهمة العداد تنازلي :grin:

#Countdown
print('NASA launches rocket and starts countdown:')
print('counting...')
count = 10
while count>=0:
    print(count)
    count=count-1
print('launched !')
1 Like

عمل رائع :+1:

1 Like
print('counting...')
count=10
while count>=0:
    print(count)
    count-=1
print('launched !')
1 Like

عمل رائع يا أماني :+1:

1 Like
print ("counting")

count = 10
  
while 0<=count<=10:

    print( count)
    count =count-1
    
print ("launching")
1 Like

عمل رائع يا ياسر :+1:

قمت بإصلاح تنسيق الأكواد خاصتك في التعليق باستعمال ```

من فضلك قم بإصلاح تنسيق الأكواد في المهمة الأخرى Scholarship

  • هنا توضيح أكثر لكيفية تنسيق الأكواد على المنتدى:
print("counting...")
count = 10 
while count >= 0:
    print(count)
    count = count - 1
print("launched !")

1 Like

عمل رائع @zeekzone :+1:

1 Like

عمل عداد تنازلي:

c=10
print ('counting...')

while c<= 10:
  print (c)  
  c-=1


print('launched !')
2 Likes

عمل جميل يا jeno
ملاحظة بسيطة: لاحظ ان طبع الارقام لا يتوقف، يعني انك دخلت في حلقة لا متناهية لأن الشرط c<= 10 محقق دائما.

1 Like
print("counting...")
countTime = 0
while countTime <= 10 :
    print(countTime)
    countTime = countTime + 1
print("launched !")
2 Likes

مية مية ي حامد :ok_hand:

لكن لاحظ أن الكود الذي قمت بكتابته يعد من الـ 0 حتى الـ 10 أي عداد تصاعدي.

هل بإمكانك كتابة كود يقوم بعمل عداد تنازلي من الـ 10 إلى الـ 0 :smirk: ؟

1 Like

مـهمـة عـمل عـداد تـنـازلـي …

count=10
print("Counting...")
while(count>=0):
  
  print(count)
 
  count-=1
 
print("launched !")
2 Likes

مرحبا بك يا فاتن معنا في مجتمع كورتابز :blush:

ما شاء الله… عمل مضبوط :+1:

1 Like

أهـلآ فـيكـ يـسـلـمـوا :grinning:

1 Like
#------- 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
1 Like

كيف أسوي أكثر من كومنت على بايثون
@YaserAlnajjar
مثلا في php نستحدم /**/

2 Likes

بين الـ """

"""
"""
3 Likes

تمام

2 Likes

عمل رائع يا عنتر :+1:

1 Like