Here is the syntax for printing Variables,Constants:
import Foundation
println("hai how are you")
var s = 1.5
print(s)
println(s)
Swift Comments:
For Commenting some code section Swift uses the following syntax
- use double backslash //let der:String ="hai";
- use  backslash and asterisks /* let der:String ="hai"; */

No comments:
Post a Comment