BCSL 044 Assesment
BCSL 044 Assesment
standard deviation for the data mentioned in problem 1. Your program should make
provision to input data from a file and output results on the screen (you may also use
Struges’ rule).
#include <stdio.h>
#include <math.h>
#define datasize 100
int main()
{
float x[datasize];
int i, n;
float average, variance, std_deviation, sum = 0, sum1 = 0;
FILE *myFile;