source:
CIVL/examples/experimental/nest.cvl@
2b5dc93
| Last change on this file since 2b5dc93 was 8fa5a7b, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 192 bytes | |
| Rev | Line | |
|---|---|---|
| [f28d814] | 1 | #include<civlc.h> |
| [34760dc] | 2 | |
| [f28d814] | 3 | $input int n; |
| 4 | $output double d=0; | |
| [34760dc] | 5 | |
| 6 | void main() { | |
| 7 | for (int i=0; i<n; i++) { | |
| 8 | double h(); | |
| 9 | double g(int j) { | |
| 10 | return (double)(10*i+j); | |
| 11 | } | |
| 12 | d += g(i); | |
| 13 | } | |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
