Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include<stdlib.h>
  2. #include<stdio.h>
  3.  
  4. int main(void) {
  5. double A[5] = {
  6. [0] = 9.0,
  7. [1] = 2.9,
  8. [4] = 3.E+25,
  9. [3] = .00007,
  10. };
  11.  
  12. for(size_t i = 0; i < 5; ++i) {
  13. printf("element %zu is %g, \tits square is %g\n", i, A[i], A[i]*A[i]);
  14. }
  15.  
  16. return EXIT_SUCCESS;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement