RosettaCodeData/Task/Variables/Ring/variables-5.ring

6 lines
247 B
Plaintext

x = 10 # x is a number
y = "20" # y is a string
sum = x + y # sum is a number (y will be converted to a number)
Msg = "Sum = " + sum # Msg is a string (sum will be converted to a string)
see Msg + nl