#include <stdio.h>#include <stdarg.h>#include <time.h>#define NINT 1000000000int main(void);double make_ssq (int);void make_sum(int *, double *);int main ()/* This program calculates the variance of the first 10^9 integers *//* using only one cpu on the Macintosh.                            *//* To compile with the Absoft C compiler, use:                     *//* acc -A -O uni.c -o uni.out                                      */{int n = NINT;clock_t start_program, end_program;double sum = 0.0, mean, ssq;start_program = clock ();/* calculate sum */ssq = make_ssq (n);/* calculate sum of squares */make_sum (&n, &sum);mean = sum / n;printf("%15d %20.3f %20.3f\n", n, mean, (ssq/n)-(mean * mean));end_program = clock ();printf("\ntime in sec: %7.2f\n", (end_program-start_program)/60.);return 1;}doublemake_ssq (int n){double s = 0.0;int i;for (i=0;i<n;i++)     s+=(double) i*i;return s;}voidmake_sum (int *n, double *s){int i;for (i=0;i<*n;i++)     *s+=(double) i;}