Ankita Saini has Published 277 Articles

Swift Program to Find Geometric Mean of the Numbers

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:14:29

This tutorial will discuss how to write swift program to find the geometric mean of the numbers. Geometric mean also known as GM. Geometric mean is defined as the xth root of the product of x numbers. Suppose we have x elements(that are, a1, a2, a3, ....ax) in the given ... Read More

Swift Program to Find Harmonic Mean of the Numbers

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:13:24

This tutorial will discuss how to write swift program to find the harmonic mean of the numbers. Harmonic mean also known as HM is defined as the reciprocal of the average of reciprocal. Or we can say that harmonic mean is the reciprocal of the arithmetic mean by their reciprocal. ... Read More

Swift Program to Find Median of an Unsorted Array

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:12:04

This tutorial will discuss how to write swift program to find median of an unsorted array. An array is an ordered collection which is used to store same type of data. For example, if any array is of integer type then it will only store integers, you are strictly not ... Read More

Swift Program to Find Mean of an Unsorted Array

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:10:18

This tutorial will discuss how to write swift program to find mean of an unsorted array. An array is an ordered collection which is used to store same type of data. For example, if any array is of integer type then it will only store integers, you are strictly not ... Read More

Swift Program to Calculate the sum of Elements in a Given Array

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:08:42

This tutorial will discuss how to write swift program to calculate the sum of elements in a given array. An array is an ordered collection which is used to store same type of data. For example, if any array is of integer type then it will only store integers, you ... Read More

Swift Program to Remove All the Elements from the Array

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:07:25

This tutorial will discuss how to write swift program to get the magnitude of the number. An array is an ordered collection which is used to store same type of data. For example, if any array is of integer type then it will only store integers, you are strictly not ... Read More

Swift Program to Remove an Element from the Set

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:06:00

This tutorial will discuss how to write swift program to remove an element from the set. Set is a primary collection type in Swift. It is an unordered collection which stores unique values of same data type. You are not allowed to store different type of values in the same ... Read More

Swift Program to Add a New Element in the Set

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:04:46

This tutorial will discuss how to write swift program to add a new element in the set. Set is a primary collection type in Swift. It is an unordered collection which stores unique values of same data type. You are not allowed to store different type of values in the ... Read More

Swift Program to Convert a String to Uppercase

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:03:38

This tutorial will discuss how to write swift program to convert a string to uppercase. A string is a sequence of characters for example, “RedCar”. Or we can say, string are used to represent textual data. Swift support a String data type which is used to create a String type ... Read More

Swift Program to Convert a String to Lowercase

Ankita Saini

Ankita Saini

Updated on 20-Oct-2022 08:02:29

This tutorial will discuss how to write swift program to convert a string to lowercase. A string is a sequence of characters for example, “RedCar”. Or we can say, string are used to represent textual data. Swift support a String data type which is used to create a String type ... Read More

Advertisements