Difference between revisions of "Print"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This print[n] function will display ''n'' to stdout. The programmer can pass any number of values or variables split by '','' * '''Pass:''' A variable to display…')
 
m (4 revisions imported)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
This print[n] function will display ''n'' to stdout. The programmer can pass any number of values or variables split by '',''
+
This print(n) function will write a variable of value ''n'' to stdout.
  
* '''Pass:''' A variable to display
+
* '''Pass:''' A [[String]] typed variable or value
 
* '''Returns:''' Nothing
 
* '''Returns:''' Nothing
  
 
== Example ==
 
== Example ==
  
  var f:="hello";
+
  #include <io>
var a:=23;
+
print[f," ", a ," 22\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