Answers for "print pyramid in swift"

0

printf in swift

let x = 3.1415926
print(String(format: "%.2f", x)) //3.14

print(String(format: "%2.2f", x)) //  3.14 (two blank spaces in front of 3.
Posted by: Guest on November-25-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language