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
monitta
2 years ago
14

Convert the given for loop to while loop and find the output of the program assuming the

Computers and Technology
1 answer:
Kruka [31]2 years ago
6 0

Answer:

Explanation:

num = int (input ("Enter a value"))

sum =0

count=0

i = 1

while i < num:

 if i%2 == 0:

        count += 1

        sum += i

        i += 1

 i += 1

print(sum)

print(count)

The output assuming num is 15 would be

56

7

You might be interested in
I need Help!!<br> 4. Explain the importance of including negative space as part of a design.
vova2212 [387]
Negative space is the space between, within and surrounding an object in an image. The positive space is the focus of the image, the object itself, but the negative space is just as important. It shares edges with the positive space, defining the outline of the object and creating proportion
5 0
2 years ago
Finish this for brainliest and 30 points
n200080 [17]
What do you mean what are we supposed to finish

6 0
2 years ago
It is possible to collaborate on a presentation with a group of people using the Internet.
DerKrebs [107]

Answer:

True

Explanation:

4 0
3 years ago
Which of the following statements is false?
mart [117]

Answer:

3 is true others are false

3 0
2 years ago
Read 2 more answers
Where is the BIOS for your computer located?
Ugo [173]
I believe the answer is C the motherboard!  
6 0
3 years ago
Other questions:
  • A Python function cannot under normal circumstances reference a module variable for its value.
    12·2 answers
  • Which statement describes borders and shading ?
    13·1 answer
  • How can you tell that a spreadsheet was saved as a 2007 Excel file?
    7·1 answer
  • En que se diferencia el software y el hardware
    7·2 answers
  • HIGH POINTS!!! <br>List the creation date of each gaming console to exist.​
    8·1 answer
  • Items that are cut or copied are placed on the Clipboard.
    6·2 answers
  • suppose as a head software engineer you assign the job of creating a class to a subordinate. You want to specify thirty-eight di
    11·1 answer
  • 7.5 Code practice Plz answer ASAP
    15·1 answer
  • 1110011*110011 binary multiplication
    9·2 answers
  • Function of Control Unit in a computer
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!