Ankita Saini has Published 319 Articles

Swift program to convert array to a string

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 14:48:23

2K+ Views

This tutorial will discuss how to write swift program to convert array to a string. String is an ordered collection of characters. For example: “TutorialsPoint”, “Pinky”, etc. To create a string type variable we use String keyword. var str : String Array is a collection of similar data types. ... Read More

Swift program to convert string to an array

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 14:43:17

6K+ Views

This tutorial will discuss how to write swift program to convert string to an array. String is an ordered collection of characters. For example − “TutorialsPoint”, “Pinky”, etc. To create a string type variable we use String keyword. var str : String Array is a collection of similar data ... Read More

Swift program to convert string type variable into boolean

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 14:41:36

925 Views

This tutorial will discuss how to write swift program to convert string type variable to boolean. Swift support various datatypes and string and bool 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 convert boolean variable into string

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 14:35:32

1K+ Views

This tutorial will discuss how to write swift program to convert boolean type variable to string. Swift support various datatypes and string and bool 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 print hollow rectangle star pattern

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 14:32:06

400 Views

This tutorial will discuss how to write swift program to print hollow rectangle 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, ... Read More

Swift program to print 8 star pattern

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 13:24:31

180 Views

This tutorial will discuss how to write swift program to 8 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 print Hello World!

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 12:52:21

222 Views

This tutorial will discuss how to write swift program to print Hello World. Hello world programs are the most basic program of any programming language. It is used to learn how we can simply print “Hello world” on the screen using Swift language. Example Hello world program The following program ... Read More

Swift program to convert the decimal number to binary using recursion

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 12:49:52

220 Views

This tutorial will discuss how to write Swift program to convert the decimal number to binary using recursion. Decimal numbers are those numbers whose base value is 10. Decimal numbers are also known as base-10 number system which contain 10 numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, ... Read More

Swift program to find the GCD of two given numbers using recursion

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 11:57:40

298 Views

This tutorial will discuss how to write swift program to find the GCD of two given numbers using recursion. GCD(Greatest Common Factor) of two numbers is known as the greater positive number which is the common factor of both the given two positive numbers. GCD is also known as HCF(Highest ... Read More

Swift program to find the reverse of a given number using recursion

Ankita Saini

Ankita Saini

Updated on 13-Dec-2022 11:47:35

354 Views

This tutorial will discuss how to write swift program to find the reverse of a given number using recursion. Reversing a number is a process in which the position of the digits of a number is interchanged to reverse their order. To find the reverse of the number we use ... Read More

Advertisements