Develop an iPhone application that convert birth date into year, month and days in swift.

Code: ViewController.swift: import UIKit class ViewController: UIViewController {     @IBOutlet weak var lblday: UILabel!        @IBOutlet weak var view1: UIView!     @IBOutlet weak var lblmonth: UILabel!     @IBOutlet weak var lblyear: UILabel!     @IBOutlet weak var txtdate: UITextField!     override func viewDidLoad() {        ...

Write a program in swift to check the number is palindrome or not.

      Code: import UIKit var reversen = 0 var rem = 0 var n = 142 var no = n no=n while n != 0 {     rem = n%10     reversen = reversen * 10 + rem     n /= 10 } if(no == reversen) {     print("\(no)" + " is pelindrome") } else {     print("\(no)" + " is  not pelindrome")     } Result: ...

Write a program in swift to check the number is even or odd.

      Code: import UIKit var n = 28 // enter your number here if(n%2==0) {     print("\(n) is even number.") } else {     print("\(n) is odd number.")     } Result: ...