Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
abe017e44332356c4ce974dff3a2ee22f5ceb349
/
.
/
test
/
fp1.c
blob: 3f3aca36d9e7fea95a6e44476dc88e1211eb4a3e [
file
] [
log
] [
blame
]
#include
<stdio.h>
double
a
[
10
];
int
main
(
void
)
{
int
i
;
double
s
;
for
(
i
=
0
;
i
<
10
;
i
++)
a
[
i
]
=
11.11
*
i
;
s
=
0.0
;
for
(
i
=
0
;
i
<
10
;
i
++)
s
+=
a
[
i
];
printf
(
"result = %f\n"
,
s
);
return
0
;
}