Write a program to calculate standard deviation and mean

#include<stdio.h> #include<math.h> int main() { int N,i; float n,sum=0,sqrSum=0,mean,SD; printf("Enter number of numbers \nN="); scanf("%d",&N); for(i=1;i<=N;i++) { printf("Enter number %d: ",i); scanf("%f",&n); sum+=n; sqrSum+=n*n; } mean=sum/N; SD=sqrt((sqrSum/N)-mean*mean); printf("Mean: %.3f\n",mean); printf("S.D: %.3f",SD); return 0; }

**Output**