1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sasho [114]
3 years ago
7

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(strNum) print(factorial(num))
-6
1
-3
There is no output due to a runtime error.
Computers and Technology
2 answers:
Nostrana [21]3 years ago
6 0

Answer: well it’s not “There is no output due to a runtime error”

Explanation: Put that and I got it wrong

finlep [7]3 years ago
5 0

The Answer Is 1.

Edge 2020.

You might be interested in
Would anyone be willing to give me free a psn card
maks197457 [2]

Answer:

No??

Explanation:

why would i do that?

6 0
3 years ago
I’ll mark who ever is first or last Doesn’t matter JUST PLEASE HELP
polet [3.4K]
I can’t really see it
8 0
3 years ago
It’s just a multiple choice question about emails
cestrela7 [59]
The Answer is : A, B , C .
7 0
3 years ago
Read 2 more answers
How does a LAN differ from a MAN
blsea [12.9K]

Answer:

LAN - Local Area Network

MAN - Metropolitan Area Network

Explanation:

LAN is Within a Small Community,ie,It is a Subset of the MAN

while

MAN is Over a City,ie,More than 2 Communities or Region.

3 0
3 years ago
What versions of windows began supporting multiple local gpos?
REY [17]
Windows server 2008 R2 and windows vista
6 0
3 years ago
Other questions:
  • What does raster graphic mean
    5·1 answer
  • What does the group on option do?
    10·1 answer
  • Options to rotate cells in excel are available using the _____ button in the alignment group on the home tab.
    10·1 answer
  • Would these statements cause an error? Why or why not? int year = 2019; int yearNext = 2020; int & ref = year; & ref = y
    7·1 answer
  • I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
    9·1 answer
  • ¿por que la toria de lamarck sobre el alargamiento del cuello de las jirafas por el esfuerzo continuado no pasara a sus descendi
    10·1 answer
  • The IT department sent out a memo stating that it will start delivering desktop computer interfaces through the IT data center v
    5·1 answer
  • 12. Write C statement(s) that accomplish the following. a. Declare int variables x and y. Initialize x to 25 and y to 18. b. Dec
    12·1 answer
  • Charlie does not think he will be able to finish his project by the deadline at this point in the decision making progress to so
    13·1 answer
  • Gold jewellery is made when solid-gold is melted and then put into containers which are the shape of the jewellery. After this t
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!