You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
351 B
24 lines
351 B
/* This may look like nonsense, but really is -*- mode: C -*- */
|
|
|
|
/* The main thing that this program does. */
|
|
void main() {
|
|
// Decralations
|
|
int i;
|
|
double A[5] = {
|
|
9.0,
|
|
2.9,
|
|
3.E+25,
|
|
.00007,
|
|
};
|
|
|
|
// Doing some work
|
|
for (i = 0; i < 5; ++i) {
|
|
printf("element %d is %g, \tits square is %g\n",
|
|
i,
|
|
A[i],
|
|
A[i]*A[i]);
|
|
}
|
|
|
|
return 0;
|
|
}
|