Answer:
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
6 5 4 3 2 1
Explanation:
I do not now know which option it corresponds but the shape should look like above.
The logic is following;
There is a nested for loop. The inner loop prints the value of j, when j is smaller than or equal to i. Otherwise, it prints a space.
For example, in the first iteration i = 1 and j starts from 6.
i = 1, j = 6 -> print space
i = 1, j = 5 -> print space
i = 1, j = 4 -> print space
i = 1, j = 3 -> print space
i = 1, j = 2 -> print space
<u>i = 1, j = 1 -> print j</u>
Answer:
Following are the code in c language
#include <stdio.h> // header file
int main() // main function
{
int n1,i;
float avg,x,s=0; // variable declaration
printf("\nEnter How many Number terms you want:");
scanf("%d",&n1); // input terms by user
for(i=0;i<n1;++i)
{
scanf("%f",&x); // user input
s= s +x; //calculate sum
}
avg = s/n1;// calculate average of n number
printf("\nThe average of n number is:");
printf("%f",avg); // display average
return 0;
}
Output
Enter How many Number terms you want:3
3
4
3
The average of n number is:3.333333
Cams always us to see things that happen when we are not there
The recipient IP address would would be the recipient home address.