Character codes: Difference between revisions

Content added Content deleted
(Replace println() with print(); replace output "syntaxhighlight" tag with "pre" tag)
Line 1,247: Line 1,247:
"abcABC"</syntaxhighlight>
"abcABC"</syntaxhighlight>
=={{header|Kotlin}}==
=={{header|Kotlin}}==
<syntaxhighlight lang="scala">fun main(args: Array<String>) {
<syntaxhighlight lang="kotlin">fun main() {
var c = 'a'
var c = 'a'
var i = c.toInt()
var i = c.code
println("$c <-> $i")
println("$c <-> $i")
i += 2
i += 2
Line 1,261: Line 1,261:
99 <-> c
99 <-> c
</pre>
</pre>

=={{header|LabVIEW}}==
=={{header|LabVIEW}}==
{{VI snippet}}<br/>
{{VI snippet}}<br/>