CodeSolved

Solved Programming Questions & Exercises

Countdown

Practice Easy 7/ Download 4818 Views Most popular

Write a program that receives a number of input and from that number to zero countdown and prints in the output

40 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
number=int(input("Enter a number :"))
if number > 0 :
    for i in range(-1 , number):
     print(number)
     number = number - 1
else: 
    print("Enter a positive number not 0 or a negative number.")
User 930 Download Python
num = int(input("enter a number and its inverse will go to zero:"))
while num > 0:
    print (num)
    num = num - 1
Arsam Download Python
def countdown():
    # Get a number from the user
    number = int(input("لطفاً یک عدد وارد کنید: "))
    
    # Countdown from the number entered to zero
    for i in range(number, -1, -1):
        print(i)

# Implementation of the function
countdown()
Mma123 Download Python
num = int(input("your number : "))
def max(num):
    while True:
        if num == -1:
            break
        else:
            print(num)
            num -= 1
max(num)
Hosien Download Python
num = int(input("Enter your number: "))
for i in range(num):
    print(num)
    num = num -1

Pari313 Download Python
num = int(input("Num: "))
while num > -1:
    print(num)
    num -=1
print("\n")
Awlizf Download Python
# Get a number from the user
num = int(input("add: "))
# If the number was 1- Larger, print it then
while num > -1:
    print(num)
    num -= 1
Hamed Download Python
<< Previous page 1 2 4 Next page >>

Submit answer

Submitting answers is currently unavailable.

×
×
Close