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
zavuch27 [327]
2 years ago
12

Given a number n, for each integer i in the range from 1 to n inclusive, print one value per line as follows:

Computers and Technology
1 answer:
monitta2 years ago
3 0

The program is an illustration of loops and conditional statements

<h3>Loops</h3>

Loops are used to perform repetitive operations

<h3>Conditional statements</h3>

Conditional statements are statements that are used to make decisions, depending on their truth values

<h3>Python program</h3>

The program written in Python where comments are used to explain each line is as follows:

#This gets input for n

n = int(input())

#This iterates through n

for i in range(1,n+1):

   #If the current number is not a multiple of 3 and 5

   if not(i%3 == 0 or i%5==0):

       #This prints the number

       print(i,end="")

   else:

       #This prints "Fizz", if the current number is a multiple of 3

       if i%3 == 0:

           print("Fizz",end="")

       #This prints "Buzz", if the current number is a multiple of 5

       if i%5==0:

           print("Buzz",end="")

   #This prints a new line

   print()

Read more about loops and conditional statements at:

brainly.com/question/26098908

You might be interested in
What does CPU stand for
nata0808 [166]

Answer:

Central Processing Unit

Explanation:

Principle part of any digital computer system

6 0
2 years ago
you turn on your desktop computer. You can hear the fans start up, but the monitor remains blank. You wait a while, but it doesn
brilliants [131]

Answer:

Processor , Video-card  , Memory

Explanation:

If you turn on your desktop computer and the monitor remains blank, the problem might either be as a result of Processor not working, Video card bad and memory not sitting well.

if the problem is associated with processor, do the following:

  • Check if the power LED light on the motherboard is on or off.
  • If the LED light is off, check for motherboard or power supply issues.
  • If the LED light is on, check if the processor fan spins when the system is powered on.

Another major cause could be that the Video card is bad first thing to do is Update the drivers, then reseat the Videocard or probably change it.

Lastly memory module is loose, the computer might not display an image. In other words, your computer starts but the screen is black.

Now, you can try resetting the memory modules to fix the "PC turns on but no display" issue. Remove memory module from the memory slot, and then put it back into the slot to get a better connection so that the computer can recognise the memory.

8 0
3 years ago
In Microsoft Excel, you are working with a large worksheet. Your row headings are in column A. Which command(s) should be used t
slavikrds [6]

Answer:

The answer is "freeze panes command".

Explanation:

To see the row heading information into the columns "X, Y, and Z" we use the freeze panes command, which Pick's the cells from rows and on the right side of the columns, where you scroll.  

This tool allows you to block columns/row headings so, the first column /or top row will stay on the screen and you also scroll down or over to see the rest of the panel.

3 0
3 years ago
What leadership style involves the ideas of advice others
makvit [3.9K]
Democrat good luck dude
5 0
3 years ago
An audit trail is a record of how a transaction was handled from input through processing and output
Nostrana [21]

The answer is : True.  An audit trail is a record of how a transaction was handled from input through processing and output.  An audit trail is the evidence, such as purchase orders and invoices, that a financial transaction actually occurred.

6 0
3 years ago
Other questions:
  • SOMEONE PLEASE HELP ASAP!!
    14·2 answers
  • The equipment that processes data in order to create information is called the _______.
    8·2 answers
  • You have to sort 1 GB of data with only 100 MB of available main memory. Which sorting technique will be most appropriate?
    5·1 answer
  • A subroutine may be used to refer to which of the following? Check all that apply.
    15·2 answers
  • Hvhblfffffffff<br> eafafaefafsa
    9·2 answers
  • A user finished working on a computer in the lab. What should the user do so
    15·1 answer
  • Hardware is found outside the system unit.​
    13·1 answer
  • photoshop Curves, photoshop an image and manipulate the curves on a selection of the photo. upload the original photo and The ph
    5·2 answers
  • A form of segmentation that is based on user usage rate, user status, purchase occasion, and benefits sought is _________.
    13·1 answer
  • Think of some local businesses that have websites. Look online and identify two different websites for businesses or services in
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!