Difference between revisions of "Print"

From Mesham
Jump to navigationJump to search
m (4 revisions imported)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
  
 
  #include <io>
 
  #include <io>
  var f:="Hello";
+
   
print(f+" world\n");
+
function void main() {
 +
    var f:="Hello";
 +
    print(f+" world\n");
 +
};
 +
 
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:IO Functions]]
 
[[Category:IO Functions]]

Latest revision as of 15:44, 15 April 2019

Overview

This print(n) function will write a variable of value n to stdout.

  • Pass: A String typed variable or value
  • Returns: Nothing

Example

#include <io>

function void main() {
   var f:="Hello";
   print(f+" world\n");
};

Since: Version 0.41b