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
Candace opened an email from a person she didn't know and clicked on a pop-up in the email that installed a virus on her compute
Minchanka [31]

Answer:

Shut down the computer.

Explanation:

l hope it help

4 0
3 years ago
Read 2 more answers
Hello everyone! can anybody help me? i need help with computing.
timurjin [86]

Answer:

a pseu code is a is an artificial and informal language that helps programmers develop algorithms.

Explanation:

7 0
3 years ago
Wight an essay on Knowledge sharing among robots.<br> please and please do not delete my question.
PolarNik [594]

Answer:

Writing an essay to robots is very bad. The robots could steal your information and essay. Never share essays with robots.

Explanation:

5 0
2 years ago
How to use access?<br> like working in access and bringing tables and stuff
zheka24 [161]

I would recommend first familiarizing yourself with the program Access by watching introductions.

If you have even more time to spare and want hands-on experience, use Wise Owl exercises. Search up college classes assignments or guides. (Boy, do they love their big workbooks.) Essentially, do practice exercises.

5 0
2 years ago
Which code snippet could be used to print the following series?
GaryK [48]
C is the answer, I think
7 0
1 year ago
Other questions:
  • I need help answering these questions!
    11·1 answer
  • Programming assignment (100 pts): In the C++ programming language write a program capable of playing Tic-Tac-Toe against the use
    14·1 answer
  • A symbolic link is also known as a soft link and is depicted by an @ symbol appearing at the beginning of the filename when view
    7·1 answer
  • 1 Point
    14·1 answer
  • Please answer <br><br> Steps 1-6 <br><br> Visual basics
    7·1 answer
  • What do you think is the most fascinating aspect of the internet?
    7·2 answers
  • A personal computer (pc) or ____ is a small computer system designed to be used by one person at a time.
    12·1 answer
  • A type of multiprocessor chip that provides two or more separate and independent CPUs.
    8·1 answer
  • What is the HCF of smallest prime number and the smallest composite number?​
    12·1 answer
  • Write a program whose inputs are three integers, and whose output is the smallest of the three values. Ex: If the input is: 7 15
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!