Swift Programs With Example

This section is a collection of basic swift programs with input/output examples which are number conversion, number swapping, airthmetic, number calculation, length of a string, program to calculate simple interest, arrays programs, programs to illustrate call by value and call by reference, pointers programs, fibonacci series program in swift, prime number program, Armstrong number program, leap year program and much more...

SNoSwift Programs
1Swift Programming Language Basics
2Swift Program to Add Two Numbers
3Swift Program to Subtract Two Numbers
4Swift Program to Multiply Two Numbers
5Swift Program to Divide Two Numbers
6How to find the maximum of two numbers
7Swift program to split an array into chunks
8Swift program to find the maximum of three numbers
9How to use the loop over an array in Swift
10How to convert a float to an int in Swift
11Nested if…else Statement in Swift programming
12Switch Statement in Swift programming with example

If you want to add your swift programs in this page, the write any swift program and share with us using the Request Tutorial page. I will add your program with your name and photo on FreeWebMentor.