Enter your E-mail Address below for Free E-mail Alerts right Into your Inbox: -

Sunday

Swift Printing Variables and Comments


Swift Printing Variables and Comments

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

  1. use double backslash //let der:String ="hai"; 
  2. use  backslash and asterisks /* let der:String ="hai"; */

No comments:

Post a Comment