![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 13.11.2020 19:50, DaFuzzyDude
You wrote a program to find the factorial of a number. In mathematics, the factorial operation is used for positive
Integers and zero.
What does the function return if the user enters a negative three?
def factorial(number):
product = 1
while number > 0
product = product number
number = number - 1
return product
strNum = input("Enter a positive integer: ")
num = int(str Num)
print(factorial(num))
There is no output due to a runtime error.
O-3
01
![answer](/tpl/images/cats/otvet.png)
Answers: 2
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 13:00, olorteguimikie
Which part of the cpu accepts data?
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:40, broang23
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it
Answers: 2
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 22:30, kayelynn003
How many points do i need before i can send a chat
Answers: 1
Do you know the correct answer?
You wrote a program to find the factorial of a number. In mathematics, the factorial operation is us...
Questions in other subjects:
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/himiya.png)
Chemistry, 09.11.2021 23:40
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 09.11.2021 23:40
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 09.11.2021 23:40
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/en.png)
English, 09.11.2021 23:40
![Konu](/tpl/images/cats/mat.png)
Mathematics, 09.11.2021 23:40