Swift Program to Divide Two Numbers

By: Editorial Staff | Last Updated: | In: Swift Programming


In this post, I will explain about a Swift program to divide two numbers with an example and real-time output.

This is a very basic program in Swift programming language. If you are Swift beginners or want to start learning Swift programming language, then this program will help you to understand the basic Swift programming.

Swift Program to Divide Two Numbers

Before executing this program I assume you have configured swift on your computer. Copy the below program and create a file “divide.swift” and execute it.

Program Output

The division is: 3

Share this post!


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari


Tags: , , , , , , ,