Wednesday, December 24, 2014

Monkey getting started - Printing Constant variables example code

I made this example while watching the youtube tutorials for monkey.


This is the outputted result :
10
1.1
hello

This is the code :

Const con1:Int = 10
Const con2:Float = 1.1
Const con3:String = "hello"

Function Main:Int()
    Print(con1)
    Print(con2)
    Print(con3)
    Return 0
End Function

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.