The shape of descending numbers
Write a program that receives a number and prints the figure below according to the number received
Example:
number: 5 55555 4444 333 22 1
Write a program that receives a number and prints the figure below according to the number received
Example:
number: 5 55555 4444 333 22 1
let msg = 'error' alert(msg)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
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
def makos(n): for i in range(n,0,-1): print(str(i) * i) print(makos(n=int(input("entre your number:"))))
def print_pattern(n): for i in range(n, 0, -1): print(str(i) * i) def main(): try: number = int(input("عدد را وارد کنید: ")) if number < 1: print("لطفاً عددی بزرگتر از صفر وارد کنید.") return print_pattern(number) except ValueError: print("لطفاً یک عدد صحیح وارد کنید.") if __name__ == "__main__": main()
num = int(input("enter num: ")) while num > 0: print(num * str(num)) num-=1
a=input("number:") b=int(a) for i in range (1 , b+1) : print(a*b) a=int(a) a=a-1 a=str(a) b=b-1
UserNumber=input('enter a an integer number= ') while int(UserNumber)==0: print("enter another number") UserNumber = input('enter a an integer number= ') def PosetiveNumber(UserNumber): while int(UserNumber) != 0: print(int(UserNumber) * str(UserNumber)) UserNumber = str(int(UserNumber) - 1) def NegetiveNumber(UserNumber): while int(UserNumber) != 0: print((int(UserNumber) * -1) * str(UserNumber)) UserNumber = str(int(UserNumber) + 1) while int(UserNumber!=0): if int(UserNumber)>0: PosetiveNumber(UserNumber) else: NegetiveNumber(UserNumber) answer=input('do you want to try another number ? ').lower() if answer=='yes': UserNumber = input('enter a an integer number= ') while int(UserNumber) == 0: print("enter another number") UserNumber = input('enter a an integer number= ') else: print('-----END-----') break
n = int(input())
for i in range(n , 0 , -1) :
print(i * str(i))
def countdown(number): while number > 0: counter = str(number) print(counter*number) number -= 1 try: number = int(input('number: ')) countdown(number) except ValueError: print('please inter a natural number')
Submitting answers is currently unavailable.
Using JavaScript, send a request with the following specifications method = posturl = /test.php FNAME information =? Lname =? Age =? Get the information above through Prompt from the user
Write a program that receives a number from the user and prints the multiplication table as the following in the output. Yek adad vared konid: 2 x 1 = 2 2 x 2 = 4 x 3 = 6 2 x 4 = 10 x 6 = 12 2 2 x 7 = 14 2 x 7 = 2
Write a program that receives the square side length from the input and calculates its area of square area = a side of its own = a side of a power 2.
Write a program that receives 2 numbers from the input and prints the larger number
Write a program that receives text from the input and prints the translation in the output. It can also be able to get English text from the entrance and convert it to a coder. Input: hooshang ....--- .... ...
We want to open the cow door, we don't know the password, but we have the following information: the second -digit safing password and the fifth digit equivalent to the first number of the first digit of a larger unit ...
Write a function to get a string and return the length of the string Tip: In this exercise you should not use ready -made functions like Len in Python
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.