Calculator Program in Swift

Calculator program in swift programming language to execute the calculations like addition, subtraction, multiplication and division in swift. These calculation process were done using the symbols like +,- etc.

Operator in Swift

A particular symbol or phrase called an operator is used to inspect, alter, or combine information. 

The addition operator ( + ) adds two numbers together, as in let I = 1 + 2, and the logical AND operator ( && ) combines two Boolean values, as in if enteredDoorCode && passedRetinaScan.

Operators are a subset of functions that take one or more arguments and return a new value. 

Operators include things like addition (+), subtraction (-), multiplication (*), and so on. Variables and constants are operated on with the help of operators.

Mathematical Operators in Swift

A mathematical function that performs a computation on two operands is known as an arithmetic operator. 

They’re common in ordinary math, and most programming languages include a library of them that can be used in equations to do a variety of sequential calculations.

Addition, subtraction, multiplication, and division are the four basic arithmetic operations for real numbers. 

The commutative, associative, and distributive characteristics are the fundamental arithmetic properties.

print("simple calculator program in swift")
var a=2
var b=2


Simple calculator program in swift