source:
CIVL/examples/nest.cvl@
844ebd8
| Last change on this file since 844ebd8 was 59b5362, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 174 bytes | |
| Line | |
|---|---|
| 1 | |
| 2 | \input int n; |
| 3 | \output double d=0; |
| 4 | |
| 5 | void main() { |
| 6 | for (int i=0; i<n; i++) { |
| 7 | double h(); |
| 8 | double g(int j) { |
| 9 | return (double)(10*i+j); |
| 10 | } |
| 11 | d += g(i); |
| 12 | } |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
