Calculate factor
Write a program that receives a number of input and the factoriel calculates and prints it
Write a program that receives a number of input and the factoriel calculates and prints it
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
n=int(input("please enter a number here:")) i=1 for m in range(1,n+1): i=i*m print(i)
def factorial(num): if num == 1: return 1 return num * factorial(num-1) num = int(input('Enter number:')) print(f'{num}! = {factorial(num)}')
a=int(input("a:")) b=1 for c in range(1,a): b=b*c print(b*a)
Hi I don't understand that part b*c.
a = int(input("Enter Num :")) for i in range(1 , a): a *= i print(a)
def factorial(i): for j in range (1,i): i*=j print(i) a=int(input('num:')) print(factorial(a))
f = int (input("f: ")) if f < 0: print ("adda mosbat vared kon") elif f==0 : print("1") else: x = 1 for j in range(1 , f+1): x *=j print (x)
num = int(input("enter your number:")) a = 1 for i in range(1,num+1): a = a * i else: print(a)
Submitting answers is currently unavailable.
We want to open a cow door, we don't know the safety password, but we have the following information: the second -digit safing password is the first number of the first digit, the last 4th of the person in one unit is smaller than their first digit ...
Write a program that receives 2 dates in yyyy/mm/dd format and print 2 dates to the output for example Tarikh1: 1401/11/01 tarikh2: 1401/11/05 4 days Tarikh1: 1401/10/01 Tarikh2: 1401/11/05 34 Days
Write a program that receives the user's name from the input and prints the following welcome message what is your name: amirhossein welcome amirhossein
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
Using HTML and CSS, insert an image with the following features on the page.
Write a code that uploads a video with an address (test) on the page. There are video control buttons too
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.