Ankita Saini has Published 319 Articles

Swift Program To Find The Area of a Trapezium

Ankita Saini

Ankita Saini

Updated on 02-Aug-2022 14:52:10

169 Views

This tutorial will discuss how to write a swift program to find the area of a trapezium.A trapezium is a quadrilateral with at least a pair of opposite parallel sides. The parallel sides are known as the base and the non-parallel sides are known as the legs of the trapezium. ... Read More

Swift Program to Find the Perimeter of a Rectangle

Ankita Saini

Ankita Saini

Updated on 02-Aug-2022 14:50:01

348 Views

This tutorial will discuss how to write a swift program to find the perimeter of a Rectangle.A rectangle is a 2-dimensional closed shape with four sides in which opposite sides are parallel and equal to each other. It also has four angle with 90 degrees each.The perimeter of the rectangle ... Read More

Swift Program to Calculate simple interest and compound interest

Ankita Saini

Ankita Saini

Updated on 02-Aug-2022 14:43:45

457 Views

This tutorial will discuss how to write a swift program to calculate the simple interest and compound interest. Compound Interest The interest applied on the principal and interest together over a certain period of time is known as the compound interest. Or in other words compound interest is known as ... Read More

Swift Program to Calculate the Sum of Natural Numbers

Ankita Saini

Ankita Saini

Updated on 01-Aug-2022 14:43:13

660 Views

This tutorial will discuss how to write a swift program to calculate the Sum of Natural Numbers. Natural numbers are the set of whole numbers excluding 0. In other words, natural numbers are the numbers which includes all the positive numbers starting from 1 to infinity. It does not contain ... Read More

Swift Program to Find the Surface area and Volume of Cuboid

Ankita Saini

Ankita Saini

Updated on 01-Aug-2022 14:36:37

536 Views

This tutorial will discuss how to write a swift program to find the surface area and volume of cuboid. A Cuboid is a 3-dimensional solid figure which contains six rectangular faces, eight vertices and twelve edges. It has three dimensions known as length, breadth, and height and if a cuboid ... Read More

Swift Program to Check whether the input number is a Neon Number

Ankita Saini

Ankita Saini

Updated on 01-Aug-2022 13:16:46

139 Views

This tutorial will discuss how to write a swift program to check whether the input number is a Neon Number. In a number system, a number whose sum of digits of square of the number is equal to the number is known as neon number. Below is an example of ... Read More

Swift Program to Calculate Compound Interest

Ankita Saini

Ankita Saini

Updated on 01-Aug-2022 13:06:01

589 Views

This tutorial will discuss how to write a swift program to calculate compound interest. The interest applied to the principal and interest together over a certain period of time is known as compound interest. In other words, the compound interest is known as the interest on interest. It is calculated ... Read More

Swift Program to Generate Multiplication Table

Ankita Saini

Ankita Saini

Updated on 01-Aug-2022 12:43:54

776 Views

This tutorial will discuss how to write a Swift program to generate Multiplication Table. A multiplication table is a list or table of multiples of a specified number. We can create a multiplication table by multiplying a number with whole numbers. Generally, a multiplication table is created upto 10 times ... Read More

Swift Program to Calculate the Power of a Number

Ankita Saini

Ankita Saini

Updated on 01-Aug-2022 09:26:18

1K+ Views

This tutorial will discuss how to write a swift program to calculate the power of a number. Power of a number means how many times a number is used in multiplication, for example, 16 ^2 = 16 * 16 = 256 or 16 to the power of 2. It is ... Read More

How to Swap Two Numbers in Swift Program?

Ankita Saini

Ankita Saini

Updated on 29-Jul-2022 10:28:13

2K+ Views

This tutorial will discuss how to write a swift program to swap two numbers. Swapping of two variables means mutually exchanging the values of two variables.Swapping using temporary variableGiven two variables Number1 and Number2 now we swap their values with each other using a temporary variable Numtemp. It is the ... Read More

Advertisements