Write a C program to find the Mean and Standard Deviation of
Write a C program to find the Mean and Standard Deviation of rolling a dice 10,000 times. (As simple and short it can be)
Solution
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
int main()
{
int i,a[1000], float sum=0, avg, std;
srand(time(NULL));
for (i=0;i<1000;i++) a[i]=....;
for (i=0;i<1000;i++) sum+= ....;
...................;
return 0;
}
