Answer:
Here we use the shift programming code
(a)var age1: Int=24
(b)let ear_grav:Float=9.8
Explanation:
(a) To declared any variable in swift we follow following syntax
Syntax:var variableName = <initial value>
var age1: Int=24
Here age1 is a variable that stores the age of a person
to print this use we print command in swift
print(age1)
(b)To declared the constant in swift we follow following syntax
Syntax: let constantName = <initial value>
let ear_grav:Float=9.8
Here ear_grav is a constant that stores the earth gravity 9.8
to print this use we print command in swift
print(ear_grav)