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

Write a program that reads a list of integers, and outputs those integers in reverse. The input begins with an integer indicatin

g the number of integers that follow. For coding simplicity, follow each output integer by a space, including the last one
Computers and Technology
1 answer:
lyudmila [28]3 years ago
7 0

Answer:

Following is the program in C language :

#include <stdio.h> // header file

#define n 5 //  macro

int main() main function

{

   int a[n],k1; // variable and array declaration

   printf("Enter the element:\n");

   for(k1=0;k1<n;++k1) //iterating the loop

   {

       scanf("%d",&a[k1]);//Read the values by user

   }

   printf("Output in Reverse Order:\n");

   for(k1=n-1;k1>=0;--k1)//iterating the loop

   {

   printf(" %d ",a[k1]); //Display the values

   }

   return 0;

}

Output:

Enter the element:

4

3

45

67

89

Output in Reverse Order: 89 67 45 3 4

Explanation:

Following is the description of the program

  • Define a macro "n" with value 5 after the header file.
  • Declared an array "a" and defined the size of that array by macro i.e "n".
  • Read the value by the user by using scanf statement in the array "a"
  • Finally In the last for loop display the values of array "a" by space.

You might be interested in
Software piracy is acceptable as it helps us obtain software cheaper or sometimes even for free.
ELEN [110]

Answer: 1. False 2. True

Explanation: Piracy in any capacity is in fact illegal and might possibly be a felony I'm not quite sure. But it's just like stealing a toy from the store, somebody worked hard to make it and you best be paying for it.

Software licenses on the other hand usually give you permission to install the software on one or many machines depending on the license you purchase, but usually, if you paid for it once, you can use it anywhere.

8 0
3 years ago
Read 2 more answers
what is a conditional format that displays a horizontal gradient or solid fill indicating the cell's relitive value compared to
elena-14-01-66 [18.8K]

Answer:

Data bar

Explanation:

The answer to this question is data bar. Through the use of a day bar we are able to see trends in our data. They are very useful when it comes to visualization of values that are In a range of cells. Now if the bar is longer then the value we are visualizing is definitely higher. And if it is shorterr the value is lower. Several applications like excel has programmes that makes use of data bars especially for statistical purposes.

6 0
4 years ago
In cell 14, calculate
lord [1]

Answer:

See Explanation

Explanation:

The question is incomplete as the cells that contains donation and streaming revenues are not given

<u>So, I will make the following assumption:</u>

H4 = Donations

G4 =  Streaming Revenues

<u>So, the profit will be:</u>

Enter the following formula in cell I4

=(G4 - H4)

<em>To get the actual solution in your case, replace G4 and H4 with the proper cell names</em>

3 0
3 years ago
Convert this hexadecimal number to binary :. A07F​
Maslowich

Answer:

101000000111

Explanation:

8 0
3 years ago
What is the definition of a nested function?
ExtremeBDS [4]

Answer:

A function that is defined within another function.

6 0
3 years ago
Other questions:
  • Is Bluetooth considered a computing innovation?
    8·1 answer
  • What Are the main reasons students take the SAT/ACT?
    15·1 answer
  • Which process refers to starting up a computer?<br> is the process of starting a computer.
    9·2 answers
  • Design and implement a GUI application that uses text fields to obtain two integer values (one text field for each value) along
    9·1 answer
  • Which magazie can help the public determine the best technology to use
    10·1 answer
  • What is entered into a cell that is typically numeric and can be used for calculations?
    9·2 answers
  • How many report charts can be added to the account page layout to meet this requirement? A sales manager would like to look at a
    14·1 answer
  • Organizations must protect their sensitive information through digital security measures and their _____ through physical securi
    13·2 answers
  • How can you best explain server side caching with web pages​
    7·1 answer
  • Which type of service offers a preconfigured testing environment for application developers to create new software applications
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!