Swift program to demonstrate the Half-Open range operator
var res:Int=0;
for val in 1..<10 {
res = val*val;
print(res);
}
Output:
1
4
9
16
25
36
49
64
81
...Program finished with exit code 0
