OLD | NEW |
1 { | 1 /* Copyright 2012 Free Software Foundation, Inc. |
2 Copyright 2008-2012 Free Software Foundation, Inc. | |
3 | 2 |
4 This program is free software; you can redistribute it and/or modify | 3 This program is free software; you can redistribute it and/or modify |
5 it under the terms of the GNU General Public License as published by | 4 it under the terms of the GNU General Public License as published by |
6 the Free Software Foundation; either version 3 of the License, or | 5 the Free Software Foundation; either version 3 of the License, or |
7 (at your option) any later version. | 6 (at your option) any later version. |
8 | 7 |
9 This program is distributed in the hope that it will be useful, | 8 This program is distributed in the hope that it will be useful, |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 GNU General Public License for more details. | 11 GNU General Public License for more details. |
13 | 12 |
14 You should have received a copy of the GNU General Public License | 13 You should have received a copy of the GNU General Public License |
15 along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 */ |
| 16 |
| 17 #include <stdlib.h> |
| 18 |
| 19 int |
| 20 main (void) |
| 21 { |
| 22 exit (0); |
16 } | 23 } |
17 | |
18 | |
19 program floats; | |
20 | |
21 var | |
22 i, j, k, l : integer; | |
23 r, s, t, u : real; | |
24 | |
25 begin | |
26 i := 0; | |
27 j := 0; | |
28 k := 0; | |
29 r := 0.0; | |
30 s := 0.0; | |
31 t := 0.0; | |
32 u := 0.0; | |
33 l := 0; | |
34 i := 1; { set breakpoint 1 here } | |
35 r := 1.25; | |
36 s := 2.2; | |
37 t := -3.2; | |
38 u := 78.3; | |
39 l := 1; | |
40 i := 1; | |
41 u := pi; { set breakpoint 2 here } | |
42 r := cos(u); | |
43 s := sin(u); | |
44 u := pi / 2; | |
45 r := cos(u); | |
46 s := sin(u); | |
47 end. | |
OLD | NEW |