Ankita Saini has Published 319 Articles

Swift Program to Calculate Cube Sum of First n Natural Numbers

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:18:25

207 Views

This tutorial will discuss how to write swift program to calculate cube sum of first n natural numbers. Natural numbers are those number which include all the positive number starting from 0 to infinite for example, 1, 2, 3, 4, ……n. Now we find the cube sum of first n ... Read More

Swift Program to Calculate the Area of Enneagon

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:16:34

112 Views

This tutorial will discuss how to write swift program to calculate area of enneagon. A enneagon is a polygon with 9 straight sides and 9 vertices. The sum of all the interior angles is 1260 degree. The total amount of space enclosed inside the nine sides of the enneagon is ... Read More

Swift Program to Calculate Area and Perimeter of Equilateral Triangle

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:14:57

356 Views

This tutorial will discuss how to write swift program to calculate area and perimeter of equilateral triangle A triangle whose all sides and angles are equal is known as the equilateral triangle. Each angle of equilateral triangle is 60 degrees. It is also known as 3-side polygon. Area of ... Read More

Swift Program to Find the Mid-point of a Line

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:11:17

252 Views

This tutorial will discuss how to write swift program to find the mid-point of a line. A point lies between the middle of two points is known as mid-point. Suppose we have two points A and B and C point is the mid-point located between A and B. Midpoint always ... Read More

Swift Program to Calculate Distance Between Two Points

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:09:45

541 Views

This tutorial will discuss how to write swift program to calculate distance between two points. Suppose we have two points and a line connect these points together. So the length of the line is known as the distance between two points in a plane. This formula is used to find ... Read More

Swift Program to Calculate Area of Pentagon

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:08:13

143 Views

This tutorial will discuss how to write swift program to calculate area of pentagon. A pentagon is a two-dimensional shape with 5 sides. It also contains five interior angles and their sum is 540 degrees. It is also known as five side polygon. The total amount of space enclosed inside ... Read More

Swift Program to Calculate Area of Hexagon

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:06:40

144 Views

This tutorial will discuss how to write swift program to calculate area of hexagon. A hexagon is a two-dimensional shape with 6 sides of same or different length. It contains six vertices and six interior angles. Hexagon is classified into four types according to their length and internal angles − ... Read More

Swift Program to Calculate Area of Octagon

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:05:19

96 Views

This tutorial will discuss how to write swift program to calculate area of octagon. An octagon is a two-dimensional shape with 8 sides and also consists of eight interior and exterior angles. The total amount of space enclosed inside the octagon is known as the area of the octagon. ... Read More

Swift Program to Calculate Area of Circle Inscribed in Square

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:02:33

240 Views

This tutorial will discuss how to write swift program to calculate area of circle inscribed in square. We have a figure in which a circle is inscribed in a square. Which means the centre of the circle and the square is same and the diameter of the circle is equal ... Read More

Swift Program to Print Diagonal Matrix Pattern

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 06:35:43

284 Views

This tutorial will discuss how to write swift program to print Diagonal Matrix pattern. Diagonal matrix are those matrix in which all the elements are 0 except the principal diagonal.Or we can say that in a diagonal matrix off diagonal blocks are 0 and main diagonal blocks are square matrices. ... Read More

Advertisements