Sample of short answer questions
7. Formula of statistics summary of the given data sets.
pls give examples with solutions in C
Solution
//Code.c#include <stdio.h> float mean(int arr[], int n) { float sum = 0; int i; for (i = 0; i<n; i++) { sum += arr[i]; } return sum / n;}int median(int arr[],int n){ int median; int i = 0,j = 0; for(i = 0;i<n;i++){ for(j = i+1;j<n;j++){
OR
OR