Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1.     int i;      /* Loop control variable */
  2.     int n;      /* The number of elements being stored in the loop */
  3.     int x[20];  /* The array 'x' with 20 element */
  4.     int y[20];  /* The array 'y' with 20 element */
  5.     int tempx;  /* Temp value for x */
  6.     int tempy;  /* Temp value for y */
  7.  
  8.     double sum_z,       /* The sum of the value */
  9.            cal_z,       /* The calculated value of 'z' after the sqrt(sum_z) */
  10.            sentinel,    /* Sentinel value (-999) */
  11.            z[20];       /* The array 'z' with the 20 elements */
  12.  
  13.     i = 0;  /* Initialising the value of 'i' */
  14.     sum_z = 0;  /* Initialising the value of 'sum_z' */
  15.     sentinel = (-999);  /* Stating that value of the sentinel */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement