The conversation between human and AI assistant.
How can you write a C program to compute the sum and average of a 5 integer number?
Can you tell me how to write a C program to compute the sum and average of 5 integer numbers?
Sure. Here's an example:

#include <stdio.h>

int main() {
   int num1, num2, num3, num4, num5;
   int sum;
   float average;

   printf("Enter five numbers: ");
   scanf("%d %d %d %d %d", &num1, &num2, &num3, &num4, &num5);

   sum = num1 + num2 + num3 + num4 + num5;
   average = (float)sum / 5;

   printf("Sum = %d\n", sum);
   printf("Average = %f\n", average);

   return 0;
}