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
Lelechka [254]
3 years ago
8

What is the output of the following program?

Computers and Technology
2 answers:
avanturin [10]3 years ago
7 0

I don't know if the print statement is indented into the for loop.

If the print statement is indented like this:

numA = 1

for count in range(3,5):

   numA = numA * count

   print(numA)

The output will be:

3

12

if the print statement is indented like this:

numA = 1

for count in range(3,5):

   numA = numA * count

print(numA)

The output will be:

12

I hope this helps!

harina [27]3 years ago
6 0

Answer:

12

Explanation:

Edge 2020

You might be interested in
Can anybody tell me why when I use my camera to scan the question is not working?
sleet_krkn [62]

Answer:

Have you tried reseting or updating your device?

Explanation:

5 0
3 years ago
Choose
Arisa [49]

Answer:

1. option A simultaneously

2.option A undo

6 0
3 years ago
(10 points) [Edhesive] 3.6 Code Practice
Digiron [165]

Answer:

  • You need to create a variable outside (before) the input loop.
  • You need a variable inside your loop that temporarily holds the user input.
  • In your loop, you will compare if the variable outside the loop is greater than (or less than) the new user input.

I don't know what program language you are using, but I will use python since it's easy to read and you will get the idea if you're using a different programming language.

<u>Code (Python)</u>

largestnum = 0

for x in range(6): <em>#loops 6 times</em>

   newnum = int(input("Enter a number: ")) #ask user for input & converts to int.

   if newnum > largestnum: <em>#if new number is greater than largest num </em>

     largestnum = newnum     <em>#make it the largest number</em>

<em>    </em>print("Largest:", largestnum)

The reason why you need a variable outside of the loop is because after the loop is done all variables inside the loop are trashed and can no longer be accessed outside of the loop.

3 0
4 years ago
How is line used to convey meaning and emotion within the frame below? Can you identify the primary direction of lines that dire
OleMash [197]
There is no frame below. this needs an image.  Usually line show movement or direction
8 0
4 years ago
Linguist study_____
-Dominant- [34]
That's B.

Linguist love all kinds of studies of languages culture writing etc.
6 0
3 years ago
Other questions:
  • If an online shopping site is experiencing a DDoS attack, what could be a possible impact of the attack?
    8·1 answer
  • Write a function called line_numberthat takes as parameters two strings representing file names. Assume these are text files. Th
    15·1 answer
  • On what basis can you categorize the generations of computers?
    11·1 answer
  • Say you find a module in a package that does a lot of awesomely useful things, but the name of it is module_that_does_many_aweso
    12·1 answer
  • Police officers conducting traffic stops on minority drivers more than non-minority drivers is an example of what?
    8·1 answer
  • The encapsulating security ______ protocol provides secrecy for the contents of network communications as well as system-to-syst
    14·1 answer
  • Which type of information should never be given out on social media?
    5·2 answers
  • PLEASE HELP THIS IS CONFUSING ME
    8·2 answers
  • Question 7 of 25
    10·1 answer
  • Nearly all social software systems include a(n) ________, which helps control your information flow.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!