TUTORIALS

Julia Program to print ASCII Values

Written By: Koushik S
Created at: 28-June-2023 20:36:19
Modified at: 28-June-2023 20:36:39

Program


c1 = 'a'
println(c1, " ascii value = ", Int(c1))

c2 = '3'
println(c2, " ascii value = ", Int(c2))

c3 = '#'
println(c3, " ascii value = ", Int(c3))

Output


$ julia print-ascii-values.jl
a ascii value = 97
3 ascii value = 51
# ascii value = 35
There are no likes. Be the first one to like
Likes: 0
Comments: 0