/* The standard library contains a function called atoi, which takes a string (presumably a string of digits) and converts it to an integer. For example, atoi(“345”) would return the integer 345. Write a program that reads lines (using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. Also compute the standard deviation. */ #include #include #include // for atoi(), malloc #include // for pow(), sqrt() void main() { char str[10]; int i,n,*p=NULL,s=0; float avg,sd,x=0.0; clrscr(); printf("How many integer(s): "); scanf("%d",&n); p=(int*)malloc(n*sizeof(int)); // Memory allocation for(i=0;i