N-body problem: Difference between revisions
→{{header|COBOL}}
Line 1,507:
</syntaxhighlight>
<syntaxhighlight lang="bash"> ▼
Input file is nbody-file:
0.0100 003 020
1.0000
+0.0000 +0.0000 +0.0000
+0.0100 +0.0000 +0.0000
0.1000
+1.0000 +1.0000 +0.0000
+0.0000 +0.0000 +0.0200
0.0010
+0.0000 +1.0000 +1.0000
+0.0100 -0.0100 -0.0100
Test:
▲<syntaxhighlight lang="bash">
Compile and Test
C:\GnuCOBOL> cobc -x -O2 nbody.cbl
execute: ./nbody
|