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
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)
num=int(input("yuor number:")) for i in range(1,num): num*=i print(num)
Submitting answers is currently unavailable.
Write a function that receives a username and if it was a character except the lowercase English letters, FALSE and otherwise TRUE
Write a program that receives the square area from the user and prints the size of each side in the output
Write a program that receives two users and prints the mean on output
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.