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
tatiyna
3 years ago
5

PLEASE HELP!

Computers and Technology
1 answer:
irina [24]3 years ago
5 0

Answer:

The output is :

5

6

7

Explanation:

Given

The above lines of code

Required

What is the program output

The above code is python

This line implies that n has range of values from 0 to 2

for num in range(3):

This adds 5 to num and prints the result

print (num + 5)

So, when num = 0; 5 is printed because 0 + 5 = 5

So, when num = 1; 6 is printed because 1 + 5 = 6

So, when num = 2; 7 is printed because 2 + 5 = 7

Hence, the output is

5

6

7

<em>With each number printed on a separate line</em>

You might be interested in
Comprehension s best described as the ability to
Archy [21]

Answer:

The ability to understand

Explanation:

7 0
3 years ago
Read 2 more answers
i give up on understanding and trying to pass science. ive now started clicking random letters as the choices. i actually got a
Rzqust [24]
Um okay, that's not a question so why even post it.
7 0
3 years ago
Is this correct? I say its B, but my friend says its D.
kari74 [83]

Answer:

b

Explanation:

4 0
3 years ago
Read 2 more answers
Can u please help me solve this
azamat

Alice has twice as many pencils as Cara. Leon has three more pencils than Alice. The three children have a total of 58 pencils.

<h3>What are the no. of pencils?</h3>

The no. of pencils are there totally as the 11.

Read more about the basic maths:

brainly.com/question/19493296

#SPJ1

4 0
2 years ago
Programming CRe-type the code and fix any errors. The code should convert non-positive numbers to 1.
LUCKY_DIMON [66]

Answer:

Given

The above lines of code

Required

Rearrange.

The code is re-arrange d as follows;.

#include<iostream>

int main()

{

int userNum;

scanf("%d", &userNum);

if (userNum > 0)

{

printf("Positive.\n");

}

else

{

printf("Non-positive, converting to 1.\n");

userNum = 1;

printf("Final: %d\n", userNum);

}

return 0;

}

When rearranging lines of codes. one has to be mindful of the programming language, the syntax of the language and control structures in the code;

One should take note of the variable declarations and usage

See attachment for .cpp file

Download cpp
5 0
4 years ago
Other questions:
  • If you choose a career, you will always be satisfied with your work.<br> True<br> False
    7·2 answers
  • Which icon will automatically adjust the amount of space between letters from very tight to very loose in style? Hyphenation, Te
    6·2 answers
  • When you see a yield sign what do you do?
    8·1 answer
  • Why is time management considered a soft skill
    10·2 answers
  • Which function of InfoSec management encompasses security personnel as well as aspects of the SETA program?
    5·1 answer
  • Your company has 1,000 users in a Microsoft Office 365 subscription. A Power BI administrator named Admin1 creates 20 dashboards
    14·1 answer
  • As Assembly language code runs on a CPU invoking functions and using the stack, it is clear that CPU registers are
    8·1 answer
  • Define computer ?what is water pollution?<br><br><br>​
    15·1 answer
  • Why is biodiversity so important to ecosystems?
    6·1 answer
  • Give the an example of the following .<br>a.)typing software<br>​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!