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.
Answer:
The above given statement is a fact.
Explanation:
A fact is nothing but a real statement which can never be false or imaginary or told in a future perspective. Let us analyze other options
Option 2: Opinion => An opinion can be anything and it can differ. A opinion is the way one people understand or perceive and give a statement according to that. An opinion always differs.
Option 3: Graphic => This is computer generated file, which can be true or false or imaginary. So this option is invalid
Option 4: Text => A text is nothing but words written together to convey a meaning. Though we feel like it suits the question, since the question speaks about the place, then it must definitely be fact and not just text.
I have write a very simple code for you in python and i hope it will help you a lot.
def generateString(char, val):
print(char * val)
Explanation:
This is how you can create your function in python and this function will give you the desired output.
How to Call a function:
generateString('a',12)
this is how you can call the function to get output.
I hope you get the idea.
I believe it is the the Show Desktop Icon.
Hope this helps! <3