Jump to content

Modulinos: Difference between revisions

Modulinos en FreeBASIC
(Added AppleScript.)
(Modulinos en FreeBASIC)
Line 597:
 
cr .( Why aren't you running this as a script? It only provides a constant.)</lang>
 
 
=={{header|FreeBASIC}}==
{{trans|Ring}}
<lang freebasic>
Function meaningoflife() As Byte
Dim As Byte y = 42
Return y
End Function
 
Sub main()
Print "Main: The meaning of life is "; meaningoflife()
End Sub
 
main()
Sleep
</lang>
{{out}}
<pre>
Main: The meaning of life is 42
</pre>
 
 
=={{header|Go}}==
2,130

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.