Ankita Saini has Published 319 Articles

Swift program to display prime numbers between intervals using function

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 11:42:02

267 Views

This tutorial will discuss how to write swift program to display prime numbers between intervals using function. Prime numbers are those numbers that are greater than 1 and has exactly two factors that is 1 and the number itself. For example, 7 is the prime number because it has only ... Read More

Swift program to display prime numbers between two intervals

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 11:19:38

372 Views

This tutorial will discuss how to write swift program to display prime numbers between two intervals. Prime numbers are those numbers that are greater than 1 and has exactly two factors that is 1 and the number itself. For example, 3 is the prime number because it has only two ... Read More

Swift program to convert double type variable to string

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 11:13:03

3K+ Views

This tutorial will discuss how to write swift program to convert double type variable to int. Swift support various datatypes and double and string are one of them. String is an ordered collection of characters. For example: “TutorialsPoint”, “Pinky”, etc. To create a string type variable, we use String keyword. ... Read More

Swift program to create a class and object

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 11:10:10

1K+ Views

This tutorial will discuss how to write swift program to create a class and object. Swift language is also an object oriented language. So it fully support class and objects. Class A class is a blueprint for the objects. To add the functionality to the class we can define properties ... Read More

Swift program to convert double type variables to int

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 11:01:11

2K+ Views

This tutorial will discuss how to write swift program to convert double type variable to int. Swift support various datatypes and double and integers are one of them. Double is used to represent 64-bit floating point numbers. For example, 34.55656, 9.8283, etc. To create a double type variable we use ... Read More

Swift Program to convert int type variable to double

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 10:56:27

3K+ Views

This tutorial will discuss how to write swift program to convert int type variable to double. Swift support various datatypes and double and integers are one of them. Double is used to represent 64-bit floating point numbers. For example, 34.55656, 9.8283, etc. To create a double type variable we use ... Read More

Swift Program to convert int type variable to string

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 10:54:56

4K+ Views

This tutorial will discuss how to write swift program to convert int type variable to string. Swift support various datatypes and string and integers are one of them. String is an ordered collection of characters. For example: “TutorialsPoint”, “Pinky”, etc. To create a string-type variable we use String keyword. Whereas ... Read More

Swift Program to Print Hollow Right Triangle Star Pattern

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 10:52:08

681 Views

This tutorial will discuss how to write swift program to print hollow right triangle star pattern. Star pattern is a sequence of “*” which is used to develop different patterns or shapes like pyramid, rectangle, cross, etc. These star patterns are generally used to understand or practice the program flow ... Read More

Swift Program To Print X Star Pattern

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 10:47:23

660 Views

This tutorial will discuss how to write swift program to print X star pattern.Star pattern is a sequence of “*” which is used to develop different patterns or shapes like pyramid, rectangle, cross, etc. These star patterns are generally used to understand or practice the program flow controls, also they ... Read More

Swift Program to Convert Char type variables to Int

Ankita Saini

Ankita Saini

Updated on 30-Nov-2022 07:20:23

3K+ Views

This tutorial will discuss how to write swift program to convert char type variable to int. Swift support various datatypes and character and integers are one of them. Character represent single-character string like, “2”, “a”, “l”, etc. Whereas Integer represent numeric values like 2, 3, 45, 6, etc. To ... Read More

Advertisements