source: CIVL/examples/fortran/devExamples/computedGoto_doLoop_Sample.f@ ed451d9

1.23 2.0 main test-branch
Last change on this file since ed451d9 was b7b71e8, checked in by Wenhao Wu <wuwenhao@…>, 10 years ago

Add two folder under the directory of civl/example/fortran

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@3130 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 453 bytes
Line 
1 subroutine test(size,array,case)
2 integer size, case, i, n
3 double precision sum
4 double precision array(size)
5
6
7 sum = 0.0d0
8 n = 10
9 go to (10,30), case
10 10 continue
11 do 11 i = 1, n, 2
12 sum = 1.0d0
13 11 continue
14 do 12 i = 1, n
15 sum = 2.0d0
16 12 continue
17 go to 50
18
19 30 continue
20 sum = 0.0d0
21 go to 50
22
23 50 continue
24 return
25
26 END
27
Note: See TracBrowser for help on using the repository browser.