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
Sergeu [11.5K]
3 years ago
7

Design the logic for a program that outputs every number from 1 through 15.

Computers and Technology
2 answers:
ankoles [38]3 years ago
3 0
Not sure what programming language, but i'll use Java

print (1)
print (2)
print (3)
print (4)
print (5)
print (6)
print (7)
print (8)
print (9)
print (10)
print (11)
print (12)
print (13)
print (14)
print (15)
Liula [17]3 years ago
3 0
Another way to think about this is through the use of a loop, since printing a number is a very repetitive task, you could also use,

number = 1
while number < 16:
      print(number)
      number = number + 1

The logic behind this is the "while" loop would check whether the variable 'number' is less than 16 (i.e. between 1 and 15) if so, it prints the number and then adds one to it. It then repeats the check over and over until 16 is reached and then the program terminates.
You might be interested in
A(n) ____________________ can improve system performance when two devices have different data transfer rates, as when copying mu
defon

Hello there

the answer to the question is

<u><em>Buffer</em></u>

hope this helps

Best Regards Queen Z

8 0
3 years ago
In which of the following mouse operations do you move the mouse until the pointer is positioned on the item of choice?
wolverine [178]
It's a. You have to move to the item thus pointing ;D
8 0
3 years ago
Which statement are true regarding mainframe computers
Dominik [7]

what are the answer choices?

5 0
4 years ago
It converts Assembly Language into machine language?​
docker41 [41]

Answer:

An assembler.

Explanation:

Input is (as with any programming language) files with lists of instructions (typically assembler mnemonics), output is a binary format representing these instructions in machine language.

6 0
3 years ago
When filtering for unique values only, ______ will be hidden from view
alukav5142 [94]
Greetings. 


l think it is going to be history. Hope it helped 

If not plz let me know
4 0
4 years ago
Other questions:
  • TO COMPUTING IN BUSINE
    14·1 answer
  • What are the functions of a motherboard??
    6·1 answer
  • When using bits to represent fractions of a number, can you create all possible fractions? Why or why not?
    6·1 answer
  • The double equal sign (==) is used to compare values. <br>true or false​
    14·1 answer
  • Choose the correct statement about the UNIX family of operating systems:
    7·1 answer
  • 5. Pinker is essentially arguing that all humans are influenced by both nature and nurture. We are born with some aspects and we
    12·2 answers
  • A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To ac
    5·2 answers
  • Help<br> SOS<br> Quick <br><br><br><br><br> Hurry
    5·1 answer
  • Write the following abbreviations in full next to the question number
    15·1 answer
  • How is unqualified assumptions a disadvantage of communication​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!