Write a program in C language that prompts a user to enter five different marks for a test in an array. The program then computes and display the average mark.

Sure! Here's a program in C that prompts the user to enter five different marks for a test in an array, then computes and displays the average mark:

```c
#include<stdio.h>

int main()
{
int marks[5]; // Array to store the marks
int sum = 0; // Variable to store the sum of marks
float average; // Variable to store the average mark

// Prompt the user to enter the marks
printf("Enter five different marks:\n");

// Read the marks from the user and store them in the array
for(int i = 0; i < 5; i++)
{
scanf("%d", &marks[i]);
sum += marks[i]; // Add the mark to the sum
}

// Calculate the average mark
average = (float)sum / 5;

// Display the average mark
printf("Average mark: %.2f\n", average);

return 0;
}
```

To compile and run this program, follow these steps:

1. Open a text editor and copy the above code into it.
2. Save the file with a ".c" extension, for example, "average_mark.c".
3. Open a terminal or command prompt and navigate to the directory where you saved the file.
4. Compile the program using a C compiler. For example, if you have GCC installed, you can run the command `gcc average_mark.c -o average_mark`.
5. Run the compiled program using the command `./average_mark`.
6. The program will prompt you to enter five different marks. Type the marks one by one and press the Enter key after each mark.
7. After entering all five marks, the program will display the average mark.

That's it! The program will calculate and display the average mark based on the user's input.