Difference between revisions of "Print"

From Mesham
Jump to navigationJump to search
m
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''
 
''Since: Version 0.41b''

Revision as of 14:37, 15 April 2013

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