« COBOL/Opérations arithmétiques » : différence entre les versions

Contenu supprimé Contenu ajouté
m Robot : Remplacement de texte automatisé (-(<\/?)source +\1syntaxhighlight)
Ligne 13 :
{{Définition
| contenu =
<sourcesyntaxhighlight lang="cobolfree">
MOVE x TO var1 var2 ...
</syntaxhighlight>
</source>
}}
 
Ligne 27 :
{{définition
| contenu =
<sourcesyntaxhighlight lang="cobolfree">
COMPUTE {identificateur [ROUNDED]} ... = expression arithmétique
[SIZE ERROR instructions]
[END-COMPUTE].
</syntaxhighlight>
</source>
}}
 
Ligne 49 :
{{Définition
| contenu =
<sourcesyntaxhighlight lang="cobolfree">
ADD a1 a2 ... TO {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-ADD].
</syntaxhighlight>
</source>
}}
 
Ligne 65 :
{{Définition
| contenu =
<sourcesyntaxhighlight lang="cobolfree">
SUBTRACT a1 a2 ... FROM {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-SUBTRACT].
</syntaxhighlight>
</source>
}}
 
Ligne 81 :
{{Définition
| contenu =
<sourcesyntaxhighlight lang="cobolfree">
MULTIPLY x BY {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-MULTIPLY].
</syntaxhighlight>
</source>
}}
 
Ligne 93 :
{{Définition
| contenu =
<sourcesyntaxhighlight lang="cobolfree">
MULTIPLY x BY y GIVING {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-MULTIPLY].
</syntaxhighlight>
</source>
}}
 
Ligne 109 :
{{Définition
| contenu =
<sourcesyntaxhighlight lang="cobolfree">
DIVIDE diviseur INTO {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-DIVIDE].
</syntaxhighlight>
</source>
}}
 
Ligne 123 :
{{Définition
| contenu =
<sourcesyntaxhighlight lang="cobolfree">
DIVIDE x BY y GIVING {identificateur [ROUNDED]} ...
[REMAINDER reste]
[SIZE ERROR instructions]
[END-DIVIDE].
</syntaxhighlight>
</source>
}}
 
Ligne 142 :
{{exemple
| contenu =
<sourcesyntaxhighlight lang="cobol">
000001 IDENTIFICATION DIVISION.
000002 PROGRAM-ID. calculatrice.
Ligne 174 :
000030 STOP RUN.
000031 END PROGRAM calculatrice.
</syntaxhighlight>
</source>
}}