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
WINSTONCH [101]
3 years ago
14

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

There is no output due to a runtime error.

-3
Computers and Technology
2 answers:
Alona [7]3 years ago
7 0

Answer: 1

Explanation:

got it on Edge.

Nata [24]3 years ago
3 0

Answer:

The correct answer is 1

Explanation:

Correct on edge 2020

You might be interested in
A programming language is used to tell a computer what to do to solve a problem?
goldfiish [28.3K]
As far as humans are concerned. What's written in the programming language needs to interpreted or compiled into something that the machine can actually deal with.
5 0
3 years ago
To copy the formatting of selected text to another place in the document use _____.
ANEK [815]
To copy the formatting of selected text to another place in the document use the paintbrush AKA. Format painter
7 0
3 years ago
When you are making multiples of a brownie recipe, you cannot - without great difficulty - use a fraction of an egg. The calcula
Lera25 [3.4K]
The answer is one ☝️ question for the poll of a vote
5 0
3 years ago
Create a bulleted list of four descriptive terms describing possible values a person may have. These may be your own values, or
Minchanka [31]
Create a bulleted list of four descriptive terms describing possible values a person may have.

* always be true to yourself
* honesty is the best policy
* making mistakes leads you to solutions
* it's ok to be wrong
7 0
3 years ago
Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp plz
Tanya [424]

Answer:

i wish i could help you

Explanation:

i wish i could help you

6 0
3 years ago
Other questions:
  • ________ are found on the motherboard and are used to attach your hard disk.
    6·1 answer
  • Type the correct answer in the box. Spell all words correctly. What type of network is the Internet? The Internet is an example
    13·1 answer
  • You are troubleshooting a computer that is in the design phase. The problem you see is that the CPU is not receiving information
    14·1 answer
  • What is a computer attack where an attacker accesses a wireless computer network, intercepts data, uses network services, and/or
    7·1 answer
  • Consider a disk that rotates at 3600 rpm. The seek time to move the head between adjacent tracks is 2 ms. There are 32 sectors p
    5·1 answer
  • When converting text to a table, which feature should be used?
    12·1 answer
  • Computer spreadsheet is a grid of​
    9·1 answer
  • 15. Virus cannot infect files that are saved in i. USB ii. CD-ROMs iii. Memory card iv. All of them​
    14·2 answers
  • Carlos had 194 seeds and 11 flower pots he put the same number of seeds in each flower pot which is the best estimate for the nu
    6·1 answer
  • A CPU has just been powered on and it immediately executes a machine code instruction. What is the most likely type of instructi
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!