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 string and returns the number of letters: To solve this question, you should not use ready-made functions for example: get_len ('code-bezan.ir') # 13
Write a program that gets the user's age from the input and calculates and prints the user's birthday
Write a program that receives 2 numbers from the input and prints the larger number
Write a program that receives students' scores and names and prints from the highest to the lowest score, respectively
Write a class that receives rectangular length, width and height and calculates its area and volume using different methods
CSS code to select all the following elements at once and change their background color to yellow<div class="yellow" id="box"></div><div class="yellow"></div><div class="yellow mybox"></div>Footer call to action
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.