let radius =5.0let height =10.0let pi =Double.pi
let surfaceArea =2* pi * radius * height +2* pi * radius * radius
print("The surface area of the cylinder is: \(surfaceArea)")
187 chars
8 lines
Output:
main.swift
The surface area of the cylinder is: 345.5751918947908