Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute Swift Online

var IsLogin = false
if IsLogin == true
{ print ("yes")}
else {print ("no")}

var x = 10 
if x >= 90 
{print ("A")}
else if x >= 80
{print ("B")}
else if x >= 70 
{print ("C")}
else if x >= 60 
{print ("D")}
else if x >= 50 
{print ("E")}
else
{print ("F")}

var from: Int = 10
var to: Int = 100
var sum: Int = 0

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.