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
Cerrena [4.2K]
4 years ago
14

Write a script that calculates the common factors between 8 and 24. To find a common factor, you can use the modulo operator (%)

to check whether a number can be evenly divided into both numbers.
Computers and Technology
1 answer:
AnnyKZ [126]4 years ago
8 0

Answer:

  1. common = []
  2. num1 = 8
  3. num2 = 24
  4. for i in range(1, num1 + 1):
  5.    if(num1 % i == 0 and num2 % i == 0):
  6.        common.append(i)
  7. print(common)

Explanation:

The solution is written in Python 3.

Firstly create a common list to hold a list of the common factor between 8 and 24 (Line 1).

Create two variables num1, and num2 and set 8 and 24 as their values, respectively (Line 3 - 4).

Create a for loop to traverse through the number from 1 to 8 and use modulus operator to check if num1 and num2 are divisible by current i value. If so the remainder of both num1%i and num2%i  will be zero and the if block will run to append the current i value to common list (Line 6-8).

After the loop, print the common list and we shall get [1, 2, 4, 8]

You might be interested in
Press _________ to toggle the selected range as bold​
Lunna [17]

Answer:

press the b that i in a dark shade that is bold

3 0
3 years ago
Libreoffice is an example of which type of software?.
max2010maxim [7]

LibreOffice is an Open Source Software.

<h3>Open Source Software (OSS)</h3>

A software is classified as <u>Open Source</u> when your code can be use, modified and distribute with its original rights.

<h3>LibreOffice</h3>

For answering this question, you should know a software LibreOffice.

LibreOffice is a software that allows to create: sheets, documents, drawing, charting, database, presentations, etc. It's free and an open source software - main advantages when compared to other software available.

In the other words, LibreOffice is free because the user does not need to pay any license. Also, it is an open source software because your code can manipulate for any developer.

Read more about Open Source Software here:

brainly.com/question/4593389

3 0
3 years ago
Explain the use of keyboard shortcuts and key combinations. You are at the tenth page of a 20-page document. You need to make ch
kifflom [539]

Answer:

The answer is CTRL + END

Explanation:

In order to move to the bottom of the last page the key combination to press on the keyboard is CTRL and END together. The use of the keyboard shortcut END is to move the cursor to the end of a line, page, cell or screen. While the CTRL keyboard shortcut helps to control whatever keyboard shortcut its working with depending on what needs to be done. In this context, CTRL helps END get to the bottom of the last page that is, the very end of the document.

7 0
3 years ago
It is generally safe to download mobile apps from<br>unknown sources.​
RUDIKE [14]

Answer:

no

Explanation:

because it could be a scam

6 0
3 years ago
Read 2 more answers
How can you check data on devices connected through an iot network?
vampirchik [111]

<em>Internet of Things(IoT)</em> which could be described as a group of interconnected systems or objects which are able to communicate, transmit and exchange data using <em>smart technology</em> and sensors. Data can be checked and monitored on these devices using Dashboards.

  • Dashboards provides a graphical representation of information about interconnected IoT objects or devices. They are produced using data collected from interconnected objects.

  • Since all objects are interconnected, devices use data which are are stored in storage or memory locations. These data are then used to prepare information displayed on dashboards.

Therefore, dashboards provides an interface to view data information about IoT connected devices.

Learn more :brainly.com/question/24958568

6 0
3 years ago
Read 2 more answers
Other questions:
  • Describe the "Mister Splashy Pants" campaign. How did it start? What happened?
    7·2 answers
  • You are asked to install a device that will combine several connections to the Internet and provide the sum of the available net
    8·2 answers
  • Write a program that will use user input. The program should be called PrintNumberToWordie which prints "ONE", "TWO",..., "FIVE"
    9·1 answer
  • Which technology has the potential to be misused to make atomic bombs? A. computer technology B. nuclear technology C. medical t
    14·1 answer
  • Some in the security community argue that a lack of diversity is security vulnerability. For example, Firefox and Internet Explo
    6·1 answer
  • Why do designers use tonal shading?
    10·2 answers
  • Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times
    8·1 answer
  • Antwon is building his technical writing portfolio.He created the following checklist: •check whether any part of the portfolio
    11·1 answer
  • Irene is creating a wireframe of a website she is working on to show her client. In which phase of the development process is sh
    13·1 answer
  • What is a worm?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!