Difference between revisions of "Div/fr"

From Free Pascal wiki
Jump to navigationJump to search
(Created page with "{{div}} Div est la division entière, ses opérandes et son résultat sont des entiers. Example: <syntaxhighlight> var i,j:integer; begin i:=16; j:=3; writeln(inttostr...")
 
(Use pascal highlighter)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
Example:
 
Example:
<syntaxhighlight>
+
<syntaxhighlight lang=pascal>
 
var
 
var
 
i,j:integer;
 
i,j:integer;
Line 10: Line 10:
 
   i:=16;
 
   i:=16;
 
   j:=3;
 
   j:=3;
   writeln(inttostr(i div j));
+
   writeln(i div j);
 
end;
 
end;
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 17: Line 17:
  
 
* [[Mod/fr|Mod]]
 
* [[Mod/fr|Mod]]
 
+
<br>
  
 
[[Category:Pascal/fr]]
 
[[Category:Pascal/fr]]
 
[[Category:FPC/fr]]
 
[[Category:FPC/fr]]
 
[[Category:Reserved words/fr]]
 
[[Category:Reserved words/fr]]

Latest revision as of 17:17, 29 January 2020

Deutsch (de) English (en) español (es) suomi (fi) français (fr) русский (ru)

Div est la division entière, ses opérandes et son résultat sont des entiers.

Example:

var
i,j:integer;
begin
  i:=16;
  j:=3;
  writeln(i div j);
end;

See also