Write a c program using loops to generate following output.

12 x 2 = 24
11 x 2 = 22
10 x 2 = 20
9 x 2 = 18
8 x 2 = 16
7 x 2 = 14
6 x 2 = 12
5 x 2 = 10
4 x 2 = 8
3 x 2 = 6
2 x 2 = 4
1 x 2 = 2

Answers

Answer 1

Answer:

#include <stdio.h>

int main()

{

for (int n = 12; n > 0; n--) {

 printf("%d x 2 = %d\n", n, n * 2);

}

}

Explanation:

Only one loop.


Related Questions

Write a method that accepts a number of seconds and prints the correct number of hours, minutes, and seconds.

Answers

Answer:

This solution is implemented in Java

public static void timme(int seconds) {

       int hours = seconds/3600;

       System.out.println("Hours: "+hours);

[tex]seconds = seconds - hours * 3600;[/tex]

       int minutes = seconds/60;

       System.out.println("Minutes: "+minutes);

[tex]seconds = seconds - minutes * 60;[/tex]

       System.out.println("Seconds: "+seconds);

   }

   

Explanation:

This method defines the method along with one parameter

public static void timme(int seconds) {

This calculates hours from the seconds

       int hours = seconds/3600;

This prints the calculated hours

       System.out.println("Hours: "+hours);

This calculates the seconds remaining

    [tex]seconds = seconds - hours * 3600;[/tex]

This calculates the minutes from the seconds left

       int minutes = seconds/60;

This prints the calculated minutes

       System.out.println("Minutes: "+minutes);

This calculates the seconds remaining

    [tex]seconds = seconds - minutes * 60;[/tex]

This prints the seconds left    

  System.out.println("Seconds: "+seconds);

   }

2.20 Write an expression involving a three-letter string s that evaluates to a string whose characters are the characters of s in reverse order. If s is 'top', the expression should evaluate to 'pot'.

Answers

Answer:

The program in Python is as follows:

s = input("Three letter string: ")

if(len(s)==3):

    print(s[::-1])

else:

    print("Invalid length")

Explanation:

This prompts the user for a three-letter string

s = input("Three letter string: ")

The following if condition checks if the length of the string is 3. If yes, it reverses and print the reversed string

if(len(s)==3):

    print(s[::-1])

If otherwise, it prints "Invalid length"

else:

    print("Invalid length")

Describe at least two ways social media has impacted cybersecurity.

Answers

Answer:

Its Providing Too Much Personal Information since you will be using social media to promote your own small business, you need to take extra precautions. For starters, don’t leave a trail of breadcrumbs for social media hackers. Whether you are representing yourself or your company, avoid sharing stuff like your date of birth, places where you have attended school, as well as names and pictures of your family members.

Disgruntled Employees

While it’s fairly normal for your employees to vent about working for your company, in doing so, they may inadvertently reveal more than they should. It’s a lot more common than you think, since 98% of all employees are using at least one social media platform, and as much as 50% of those are talking about their respective companies. Whether they are sharing sensitive info or posting pictures from their workplace, they may end up sharing something that might hurt your business.

Explanation:

Answer:Its Providing Too Much Personal Information since you will be using social media to promote your own small business, you need to take extra precautions. For starters, don’t leave a trail of breadcrumbs for social media hackers. Whether you are representing yourself or your company, avoid sharing stuff like your date of birth, places where you have attended school, as well as names and pictures of your family members.

Disgruntled Employees

While it’s fairly normal for your employees to vent about working for your company, in doing so, they may inadvertently reveal more than they should. It’s a lot more common than you think, since 98% of all employees are using at least one social media platform, and as much as 50% of those are talking about their respective companies. Whether they are sharing sensitive info or posting pictures from their workplace, they may end up sharing something that might hurt your business

Explanation:

Am giving BRAINLIEST!!!!!!! Assume you have entered the following after a prompt. >>> import time
How would you pause a program for 5 seconds?

Answers

Answer:

time.sleep(5)

Explanation:

How do you change the order of the slides in your presentation in the slide pane 
Copy and paste
Delete
Drag and drop
Remove

Answers

Drag and drop! Good luck

Answer:

Hold down on your slide number and then pull in the order

Explanation:

Remember push down the pull up

Need help please asapp

Answers

Answer:

B

Explanation:

0.05 is the decimal form of 5%

So the sale amount times 0.05 will give the tax amount

Hope this helps!

If we assume the modern view of existential import, why is the following syllogism invalid? No computer is made of clay. All computers are electronic devices. Some electronic devices are not made of clay.

Answers

Answer:

because the conclusion is not in agreement with the two premises.

Explanation:

Remember, the term syllogism refers to the form of reasoning that draws its conclusion based on the stated premises. In other words, a conclusion is reached if it satisfies all or part of the premises.

In this case, the statement "No computer is made of clay" and  "All computers are electronic devices" should be inferred to mean, No electronic devices are made of clay" not "Some electronic devices are not made of clay," since the two premises neither suggest that electronic devices are made from clay.

The reason why the given syllogism is invalid is because; The conclusion does not agree with the premise.

We are given two statements as premises;

1) No computer is made of clay

2) All computers are electronic devices

The third statement is the conclusion which states that;

3) Some electronic devices are not made of clay.

Now in syllogism, the conclusion must be in agreement with the two premises.

In this question, the conclusion doesn't agree with the premises because the conclusion says "some electronic devices are not made of clay". Whereas the premise says that no computer which is an electronic device is made of clay.

Since none of the premise suggests that any electronic device is made of clay, then the syllogism is invalid.

Read more about syllogism at; https://brainly.com/question/1622136

please help me please i really need helpp so i can pass

Answers

Answer:

Piezoelectric gauge is used to convert charge into measureable electric signal.

Universal serial bus interface allows a computer and flash drive to exchange information.

Analytical balance is used to measure mass

Ultrasonic flow sensors measure the seed of water using ultrasonic waves.

Explanation:

Analytical balance is used to measure mass. An analytical balance is a device that can measure the mass of an object  accurately. It can also measure very small amount of mass with a range between 0.1mg - 0.01mg.

Universal serial bus interface allows a computer and flash drive to exchange information. A Universal Serial Bus (USB) is an interface that allows communication between peripheral devices and a computer. It connects peripheral devices such as mouse, keyboards, printers, scanners, external hard drives and flash drives with the computer.

Piezoelectric gauge is used to convert charge into measureable electric signal. A piezoelectric gauge has a piezoelectric sensor that uses piezoelectric effect to measure changes in pressure, temperature, force and convert these changes into electrical charge.

Ultrasonic flow sensors measure the speed of flowing liquid using ultrasonic waves. It uses sound waves to determine the speed of the liquid.

Write a method, public static void selectSort(ArrayList list), which implements a selection sort on the ArrayList of Integer objects list. For example, if the parameter list would be printed as [3, 7, 2, 9, 1, 7] before a call to selectSort, it would be printed as [1, 2, 3, 7, 7, 9] after the method call.

Answers

Answer:

Explanation:

The following code is written in Java and like asked in the question, it is a function that takes in an ArrayList of Integers as a parameter and uses selection sort to sort the array.

public static void selectSort(ArrayList<Integer> list) {

                       for (int i = 0; i < list.size() - 1; i++)

                       {

                               int index = i;

                               for (int j = i + 1; j < list.size(); j++){

                                       if (list.get(j) < list.get(index)){

                                               index = j;

                                       }

                               }

                               int smallerNumber = list.get(index);

                               list.set(index, list.get(i));

                               list.set(i, smallerNumber);

                       }

               }

In the range E7:E11, apply the Currency number format with zero decimal places and $ as the symbol.

Answers

Answer:

bt wheres the data

Explanation:

In 1981, the first digital icons were launched for users in _________, which was the first computer with a GUI operating system.

Answers

Answer:

Xerox Alto

Explanation:

the first digital icons were launched for users in Xerox Alto in 1981. this was the first computer with a General user interface (GUI) operating system. It had a speed designation of 3 Mbit/s.

The xerox Alto had a huge influence in the design of personal computers in decades to come. It was the first to bring together all of the components of the GUI.

In 1981, the first digital icons were launched for users Xerox Alto which was the first computer with a GUI operating system.

It should be noted that the first digital icons that was launched is Xerox Alto in 1981. It was simply the first computer that had a general user interface operating system.

Also, Xerox Alto had a speed designation of 3 Mbit/s and had a huge influence in the design of personal computers in decades to come.

Read related link on:

https://brainly.com/question/21728252

True or False: Kitchen lighting can be included on a small appliance branch circuit.. Single line text.

Answers

The answers is False

When packets are routed on the Internet, the route for a particular packet is not pre-
determined. Instead, the next hop is decided by each router along the way.
How does that increase the fault tolerance of routing on the Internet?

Answers

Answer:

She notices the website is using a different font and logo, and that the emails are suspiciously worded:

Explanation:

Answer: Each router can pick a connection that's currently working and available.

Explanation: yes

In the 2018-2019 softball season, Allison hit the ball 28 out of 67 times, this included fouls. What was her percentage
of misses?

Answers

Answer:

Allison missed 58.21% of the times.

Explanation:

The first step is to divide 28 by 67 to get the answer in decimal form:

28 / 67 = 0.4179

Then, we multiplied the answer from the first step by one hundred to get the answer as a percentage:

0.4179 * 100 = 41.79%

Then 100(%) - 41.79(%) = 58.21%

An external file that can be imported into a slide to give more detailed explanation of the topic would be ____.

Answers

Answer:

Video clip

Explanation:

In a Microsoft PowerPoint, a video clip is considered an external file. Asides from the pictures and text presented in the slide for a smooth transition of the message in the PowerPoint document, a video clip can give a more detailed explanation of the topic.

This can be done by clicking the Insert tab from a Menu bar. Then click on the Video tab followed by Movie from the file. Then look for the movie file and click insert.

Please help!!! I am very confused about this question!

Answers

Explanation:

You mean like Sports Photography - focuses on athletes and coaches

Editoral Photography - focuses on a public story

Architectural Photography- focuses on design of buildings ,etc.

Answer:

Amateur Photography <----> focuses on capturing life events

Advertising Photography <----> focuses on enhancing desirability of products

Editorial Photography <----> focuses on providing visual news

Documentary Photography <----> focuses on social reality

Explanation: I think this should be correct, let me know if it helps :)

How important "saving" in every individual?​

Answers

Answer:

The importance of saving money is simple: It allows you to enjoy greater security in your life. If you have cash set aside for emergencies, you have a fallback should something unexpected happen. And, if you have savings set aside for discretionary expenses, you may be able to take risks or try new things.

What job does a back-end developer perform?
O Evaluates a computer systems vulnerabilities and weaknesses
O Handles what happens behind the scenes on websites
Handles what users see and experience on websites
O Writes code for video games​

Answers

Answer:

Handles what happens behind the scenes on websites

Explanation:

The website back end is made up of server, an application, and a database. The back-end developer builds and coordinate these components together. Back end developers manage the technical side of the websites (that is what the users do not see on the website).

The back end developer needs to know how to program using PHP, java, Python, Ruby, as well as use tools such as MySQL, Oracle, and SQL Server.

_________________ allows cloud controller to locate instances on separate zones to boost redundancy.

Answers

Answer:

_____Router___ allows the cloud controller to locate instances on separate zones to boost redundancy.

Explanation:

A router, as a networking device, forwards data packets between one computer network and other networks.  With a router, one can use wired and wireless devices to connect to the Internet.  Unlike a modem, which connects the home network to a wider internet, a router can enable the networks to interact with one another without using the Internet.

A company is completing research and development for software which it is planning to produce in approximately 2 years time. Which of the following assumptions should the company make about the processing speeds of the hardware which will be used to run this software.

Answers

Answer:

true tbh I don't really Know

create a function that draws a certain number of spaces, followed by a certain number of stars, followed by a newline.

Answers

Answer:

Explanation:

The following code is written in Python and creates a function called create_sentence which takes in 2 parameters which are the number of spaces and the number of stars. Then it uses these values to create the sentence and return it.

def create_sentence(spaces, stars):

   sentence = ""

   for x in range(spaces):

       sentence += " "

   for x in range(stars):

       sentence += "★"

   sentence += "\n"

   return sentence

Timothy is an architect. He needs to create a prototype of a new apartment that his firm is building. Which multimedia software would he use? A. image editing program B. painting program C. animation program D. digital video program E. 3D modeling program

Answers

E. 3D modeling program! This will always been used for architectural designing, a software example would be Archicad.

Write a java program named SumThousand The program adds all the number from 1 to 1000 together and print out the sum

Answers

Answer:

The program in Java is as follows:

public class SumThousand  {

   public static void main(String args[]) {

     int sum=0;

     for(int i =1;i<=1000;i++)

         sum+=i;

     

     System.out.println("Sum = " + sum);

   }

}

Explanation:

This initializes sum to 0

int sum=0;

This iterates from 1 to 1000

     for(int i =1;i<=1000;i++)

This calculates the required sum

         sum+=i;

     

This prints the calculated sum

     System.out.println("Sum = " + sum);

   

The following program calculates yearly and monthly salary given an hourly wage. The program assumes a work-hours-per-week of 40 and work-weeks-per-year of 50. Insert the correct number in the code below to print a monthly salary. Then run the program. The monthly salary should be 3333.333... .

Answers

Answer:

The program implemented in Python is as follows:

hourly=float(input("Hourly Wage: "))

print("Annual Rate: "+str(hourly * 40 * 50))

print("Monthly Rate: "+str(round((hourly * 40 * 50/12),2)))

Explanation:

The question is incomplete as the missing code is not given. However, I've written the program from scratch in python.

This prompts the program user for the hourly Wage;

hourly=float(input("Hourly Wage: "))

This calculates and prints the annual rate

print("Annual Rate: "+str(hourly * 40 * 50))

This calculates and prints the monthly rate

print("Monthly Rate: "+str(round((hourly * 40 * 50/12),2)))

Note:

The annual rate is calculated by multiplying the hourly wage to number of hours per week (40) to number of weeks per year (50)

The monthly rate is calculated by [tex]annual\ rate/12[/tex]

To bundle links together in order to improve bandwidth availability and redundancy, what protocol is used

Answers

Answer:

Link Aggregation Control Protocol

Explanation:

Link Aggregation Control Protocol can be used to assist in the formation of port channel bundles of physical links.

Link Aggregation Control Protocol is an IEEE standard defined in IEEE 802.3ad. LACP lets devices send Link Aggregation Control Protocol Data Units (LACPDUs) to each other to establish a link aggregation connection.

What kind of operating system is Windows? I

Answers

Huh? I don’t understand
computer operating system

A drop light that does not allow any electrical parts to come in contact with the outer casing of the device is called a:

Answers

Answer:

The right answer is "Double insulated light".

Explanation:

Double insulated led is mostly a sophisticated type of natural light that does not necessitate a terrestrial or planetary correlation. These illuminations could be based on these metals, are indicated in the electrical protection environmental standards that now the construction workers comply with, and therefore are readily accessible about every bedroom.

Write a program that first gets a list of integers from input. That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all integers from the list that are within that range (inclusive of the bounds).

Answers

Answer:

The program in Python is as follows:

mylist = []

num = int(input("Length: "))

for i in range(num):

    inp = int(input(": "))

    mylist.append(inp)

lower = int(input("Lower Bound: "))

upper = int(input("Upper Bound: "))

for i in mylist:

    if i >= lower and i <= upper:

         print(i, end=" ")

Explanation:

This initializes an empty list

mylist = []

The prompts the user for length of the list

num = int(input("Length: "))

The following iteration reads input into the list

for i in range(num):

    inp = int(input(": "))

    mylist.append(inp)

This gets the lower bound of the range

lower = int(input("Lower Bound: "))

This gets the upper bound

upper = int(input("Upper Bound: "))

This iterates through the list

for i in mylist:

This checks for elements of the list within the range

    if i >= lower and i <= upper:

This prints the list element

         print(i, end=" ")

Answer:input_numbers = [int(x) for x in input().split(' ')]

input_range = [int(x) for x in input().split(' ')]

for number in input_numbers:

   if input_range[0] <= number <= input_range[1]:

       print('{}'.format(number), end = ' ')

Explanation:

What is the software system design to locate information on the World Wide Web
search browser
Search engine
Search keyboard
Search result

Answers

Answer:

Search engine

Explanation:

Answer:

search engine

Explanation:

what is the moon in science class?

Answers

Some big ball of cheese that glows or something
Other Questions
When using the Copy to Purchase Order feature from within an Estimate, where do you need to turn on Use Purchase orders? Please help:( i don't understand this question Kendalls benchmark test scores are the following: 89, 79, and 93. She has to take her fourth and final benchmark on June 6 th . She really wants to get an A in the class and in order to do so she must have an average of a 90. If Kendalls teacher decides to count the final exam as two test grades, what would she need on the final test to make sure she gets an A? Add. (-x + 6) + (-5x + 8) RIGHT ANSWER GETS BRAINLIEST* What do you know about Thomas Paine? Pls I need help now! Ill give you brainlist In a science class, students water a plant with the same amount of water each day for 28 consecutive days. If the students use a total of 23.8 liters of water over the 28 days, how many liters of water did they use each day? How many milliliters did they use each day? Which statement BEST describes how thepassage is structured to develop an argumentabout Internet advertising?A) The author introduces research findings and thenexplains the results.B) The author presents a common misconception andthen explains its origin.C) The author states a problem and then providesseveral practical solutions.D) The author defines a term and then providesspecific examples to illustrate it. 50 POINTS ILL GIVE BRAINLIEST !! RANDOM ANSWERS WILL BE REPORTED!!Show two ways to simplify each expression. 1-6. I am confused *-* Oh and have a great day! 4. A stamp collector has some 15 stamps and some 20 stamps. The number of 15 stamps is eight less than three times the number of 20 stamps. The total value is $4. Find the number of each type of stamp in the collection. PLEASE SHOW WORK why is women education and employment important for the population management. A hawk building its nest on an arm of a saguaro cactus is a sign of A. commensalismB. mutualismC. paraitismD. predation The scale drawing of the tennis court shown below is drawn using a scale of 1 inch (in.) = 12 feet (ft). Bill bought a shirt for $35.80 plus he paid an additional 7% in sales tax. What was the sales tax? * 10 points Was Mao Zedong a hero, villain, or both? ANATO3 Trouvez la question.Exemple :-L'appartement est au trollme tage? -O est l'appartement ?1--La chambre est au bout du couloir.2.--La cuisine se trouve droite de l'entre.3-Les toilettes sont en face de la salle de bains.--Les placards sont dans le salon.5L'immeuble se trouve au coin de la rue.+ Is 2 5ths greater than 2 6ths Solve distance 120 meters time 30 seconds Who fled Rhode Island's for their religious beliefs?