25 lines
460 B
C
25 lines
460 B
C
/* This may look like nonsense, but really is -*- mode: C -*- */
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
/* The main thing that this program does. */
|
|
int main(void) {
|
|
// Decralations
|
|
double A[5] = {
|
|
[0] = 9.0,
|
|
[1] = 2.9,
|
|
[4] = 3.E+25,
|
|
[3] = .00007,
|
|
};
|
|
|
|
// Doing some work
|
|
for (size_t i = 0; i < 5; ++i) {
|
|
printf("element %zu is %g, \tits square is %g\n",
|
|
i,
|
|
A[i],
|
|
A[i]*A[i]);
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|