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
Copyright laws were established :A. to allow authors to distribute their work while maintaining certain ownership rights. B. to
astra-53 [7]

Answer:A

Explanation:

Copy right is an intellectual property right granted by the government that gives the owner exclusive rights to use, with some limited exception, original expressive work.

3 0
4 years ago
Encoding in the information processing theory is the process of _____
Katyanochek1 [597]

Encoding in the information processing theory is the process of inputting of information into the memory system.

<h3>What is encoding?</h3>

Encoding is an act or a system method that is used in the inputting of information into the computer memory system.

It entails the storage in the retention of encoded information. After encoding is the Retrieval method that is the act of getting the information out of memory.

Learn more about encoding from

brainly.com/question/3926211

8 0
2 years ago
Kerrri uses a database file many time a day. To increase her productivity, she should___.
Dmitriy789 [7]

Answer:

D

Explanation:

A shortcut will make it easier for her to access the database file

4 0
3 years ago
Briefly describe three (3) obstacles to becoming
Bingel [31]

Obstacles to becoming digital literates and solutions include:

1. Poor network connectivity. Solutions are:

  • Use good network service providers.
  • Find a good location with good internet facilities.

2. Authenticating Information. Solutions are:

  • Ensure you do a thorough research before sharing any information on the internet.
  • Learn to be critical with information.

3. Excessive Use of the Internet. Solutions are:

  • Always have a target of what you want to achieve with the internet.
  • Avoid unproductive activities.

<h3>What is Digital Literacy?</h3>

Digital literacy can be defined as the ability or skills needed to be able to access information and communicate via internet platforms, mobile devices, or social media.

<h3>Obstacles to becoming Digital Literates</h3>

1. <u>Poor Network Connectivity</u>: In areas where network connectivity is poor, digital literacy becomes difficult to achieve as accessing the internet to source information would be impeded. The solutions to this are:

  • Use good network service providers.
  • Find a good location with good internet facilities.

2. <u>Authenticating Information:</u> The internet is awash with information, most of which may not be verifiable, when a user becomes misinformed, they tend to have biases which affects their critical thinking. Solutions to this are:

  • Ensure you do a thorough research before sharing any information on the internet.
  • Learn to be critical with information.

3. <u>Excessive Use of the Internet:</u> People tend to spend much time on the internet which at the end of the day becomes unproductive. Solutions to this include:

  • Always have a target of what you want to achieve with the internet.
  • Avoid unproductive activities.

Learn more about digital literacy on:

brainly.com/question/14242512

6 0
3 years ago
Hi guy how do i make money in app cuz im desperate for 1 right now​
Margarita [4]

Answer:

we need context

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • Consider an application that transmits data at a steady rate (for example, the sender generates an N-bit unit of data every k ti
    8·1 answer
  • Gretchen has just started making a new presentation in a series of PowerPoint presentations. The default formatting for text in
    12·1 answer
  • Match the items with their respective descriptions. denotes row numbers denotes cell addresses denotes worksheets denotes column
    10·1 answer
  • which of the following uses technical and artistic skills to create visual products that communicate information to an audience?
    14·1 answer
  • failure of the _ cylinder will often result in sudden unexpected loss of the ability to stop the vehicle
    10·1 answer
  • Advancements in nuclear science have led to technological advances which are both harmful and beneficial. Which would be conside
    15·1 answer
  • Write a program that Read first n lines of file
    8·1 answer
  • Self-contained sequences of actions to be performed are: (1 point)
    14·2 answers
  • What are the steps to creating a blank database? Use the drop-down menus to complete them.
    9·1 answer
  • Your program analyzes complex data.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!