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
tatuchka [14]
4 years ago
10

The factorial of an integer N is the product of the integers between 1 and N, inclusive. Write a while loop that computes the fa

ctorial of a given integer N.
Computers and Technology
1 answer:
alexdok [17]4 years ago
3 0

the function and loop will be

def factorial(x):

   total = 1

   if x != 1 and x != 0:

       for i in range(x,1,-1):

           total *= i

   return total

You might be interested in
Question2.<br> What are the functions of information technology?
vovangra [49]

Answer:

I) infrastructure

ii) communication

iii) introduces and maintains computerized systems to process data efficiency , etc

3 0
2 years ago
Why is it so important to have employees who can critically think?
kiruha [24]
Its important to have employees who can critically think because if they have to make a crucial decision for the job or project he or she is working on that best suits the situation. 
6 0
3 years ago
Read 2 more answers
Assuming that the .data segment begins at location 0400000h, what would be memory layout for the below declarations be? Specify
Nezavi [6.7K]

Answer:

the memory layout will be like this

Explanation:

Let's say we have a system that needs to be used to develop the layout.

This may be interpreted as follows:

int may be drawn as  = int

the pointer may be represented as a jagged wavy line

Then the space can be presented as a box

4 0
3 years ago
Bruh why is everyone skipping my question!!!!!!!
DiKsa [7]

Answer:

What is your question?

Explanation:

7 0
3 years ago
How many bytes will have been written to the standard output device after these instructions have been executed
Anvisha [2.4K]

Answer:

Hello your question is incomplete below is the complete question

The following questions refer to this data segment (in x86 assembler language):

.data

var1 db 10h,20h

var2 dw 1020h

var3 db '4'

var4 db '56'

var5 db '789','$'

How many bytes will have been written to the standard output device after all these instructions have been executed?

mov dx, offset var3

mov ah, 9

int 21h

Answer : 4 bytes

Explanation:

(in x86 assembler language) The number of bytes that will have been written to the standard output device after the instructions listed have been executed is : 4 bytes

8 0
3 years ago
Other questions:
  • Which of the following was the first commercial software package to incorporate WYSIWYG as a feature?
    15·1 answer
  • What does microsoft recommend for large organizations requiring desktop virtualization for many clients? quizlewt?
    10·1 answer
  • One example of how psychological research can be used to control harmful behavior would be __________. A. fooling individuals th
    13·2 answers
  • The main workplace of a Windows computer is called the
    14·1 answer
  • When you navigate inside a compressed folder, you click the
    6·1 answer
  • What are the steps to creating a blank database? Use the drop-down menus to complete them.
    9·1 answer
  • Indicate whether the following statements are true or false:
    14·2 answers
  • 6) Read the article posted on The Verge entitled How to fight lies, tricks, and chaos online and summarize the four steps. Then
    15·1 answer
  • Voice of the customer, Social Media Analytics, churn analysis, survey analysis, and market research analytics are more likely to
    13·1 answer
  • Suppose a computer's login mechanism first asks for a user name, and then for the password, regardless of whether or not the log
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!