% sample2.t % % This program has no output, so running this program will % not produce anything on the screen % var FirstName : string % declares FirstName var num1: int % declares num1 num1 := 1000 % puts the value 1000 in num1 FirstName := "Kelly" % puts the string "Kelly" into % the variable FirstName var num2 : real % declares num2 num2 := -40.4 % assigns it a value num1 := 2 % replaces old value with 2 var num3: int % declares num3 num3 := 3 + 4 % the right hand side expression % can be more complicated! num1 := num3 - 6 % it can even involve variables % now num1 has the value 1