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
n200080 [17]
3 years ago
15

C Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 10 as long as

the value is less than or equal to the second integer. Ex: If the input is: -15 30 the output is:
Computers and Technology
1 answer:
alukav5142 [94]3 years ago
7 0

Answer:

Written in C Language

#include <stdio.h>

int main() {

   int num1, num2;

   printf("Enter two integers: ");

   scanf("%d", &num1);

   scanf("%d", &num2);

   if(num1 <= num2){

   for(int i = num1; i<= num2; i+=10)

   {

       printf("%d",i);   printf(" ");

   }    

   }

   return 0;

}

Explanation:

This line declares two integer variables

  int num1, num2;

This line prompts user for input of the two numbers

   printf("Enter two integers: ");

The next two lines get integer input from the user

   scanf("%d", &num1);

   scanf("%d", &num2);

The following if statement checks if num1 is less than or equal to num2

   if(num1 <= num2){

The following iteration prints from num1 to num2 at an increment of 10

<em>    for(int i = num1; i<= num2; i+=10)</em>

<em>    {</em>

<em>        printf("%d",i);   printf(" ");</em>

<em>    }    </em>

You might be interested in
How do technologies such as virtual machines and containers help improve
Alla [95]
The answer is.. D. By allowing multiple applications to run on a single server.

Got 100% on test!

Hope this helps!!
8 0
2 years ago
Ashley works for a company that helps hospitals hire new doctors. They have written a list of strategies that can be used to int
enyata [817]

Answer:

A file.

Explanation:

A file can be defined as a computer resource used for the collection of data (informations) as a single unit.

Basically, files are of different types or in various formats (forms) and these includes document, video, audio, image, software application, data library etc.

Additionally, various operations such as open, close, edit, format, delete, save, rename, compress etc. can be performed on a file through the use of specific software applications or programs.

In this scenario, Ashley wants to give a list of strategies that can be used to interview doctors to their supervisor to review.

Hence, what Ashley should give to the supervisor to do a review is a file.

6 0
3 years ago
Fill in the blanks:(a)Every Java program must have at least one ______________.(b)The Java program is executed from _________ me
ivann1987 [24]

Answer:

A two

B system unit

C Computer

Game

4 0
4 years ago
Sarah wants to calculate how much of a profit she would make on producing and selling a new product. Sarah should use a _____.
vagabundo [1.1K]
The answer is spreadsheet. I just did this lesson and I got all of the answers right so I know it's correct.
4 0
4 years ago
How can you evaluate digital news sources?
Vikki [24]

Answer:

Currency: Is this a recent article? Many articles shared on social media are older articles that may relate to current events. If the article is not recent, the claims may no longer be relevant or have been proven wrong.

Relevance: Is the article relevant? While some articles may appear to be addressing a current topic, you must read past the headline and determine the relevancy of the content for your purposes.

Authority: Who is the author? Has the author written other articles on the same or similar topic? What are the author's credentials? What is the domain of the website? Many websites these days mimic the legitimate source, take the time to look carefully. Is the source a blog or a news source? Is the website satirical or a hoax?

Accuracy: Is this article from an unbiased source? Can the content be verified by multiple sources? If it appears in only one publication with no links to sources, it is very likely to be inaccurate. This is particularly important with images that are shared widely across social media.

Purpose: Does this article provoke an emotional response? The intent of a valid news sources is to inform. While an emotional response to specific information is to be expected, inaccurate news articles are often written for the sole purpose of provoking anger, outrage, fear, happiness, excitement or confirmation of ones' own beliefs.

Explanation:

This is how you evaluate digital news sources

4 0
3 years ago
Other questions:
  • Colours in art packages are often given Hex codes as illustrated below with #00ccff. Why is Hex used in this way rather than the
    11·1 answer
  • Define the acronym WAECUP and its components
    15·1 answer
  • Insurance can help you:
    10·1 answer
  • Nathan notices that the words of the quotation are too close to the borders.
    14·2 answers
  • Which of the following statements is false? a. As of Java SE 8, any interface containing only one method is known as a functiona
    6·1 answer
  • How long does it take to wash 12 t-shirts in the quickest way?​
    15·2 answers
  • Hey Yo, i need some help, Whats 2+2?
    7·2 answers
  • 1.) Explain one way the internet has impacted the way we behave.
    7·2 answers
  • Consider this C Program C++ Program Java Program or C# Program. It reads integers from the
    8·1 answer
  • Does survey monkey remembers you already took survey?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!