Write: Difference between revisions

From Free Pascal wiki
Jump to navigationJump to search
No edit summary
 
mNo edit summary
Line 9: Line 9:
  end
  end


prints result=(the content of the [[variable]] a)
prints result=(the content of the [[Variable|variable]] a)
all the objects must be separed by a [[,]].[[writeln]] leaves a the line after the text
all the objects must be separed by a [[,]]. [[writeln]] leaves a the line after the text

Revision as of 17:12, 10 January 2007

write is a keyword wich indicates some characters to put on the screen for example

 ...
begin
 ...
 write("result=",a);
 ... 
end

prints result=(the content of the variable a) all the objects must be separed by a ,. writeln leaves a the line after the text