Ankita Saini has Published 213 Articles

Swift Program to print the right diagonal matrix

Ankita Saini

Ankita Saini

Updated on 16-Feb-2023 16:45:03

A matrix is an arrangement of numbers in rows and columns. Matrix can be of various type like square matrix, horizontal matrix, vertical matrix etc. So here we print the right diagonal of square matrix. Square matrix is a matrix in which the number of rows and columns are same. ... Read More

Swift Program to print the left diagonal matrix

Ankita Saini

Ankita Saini

Updated on 16-Feb-2023 16:44:06

In this article, we will learn how to write a swift program to print the left diagonal matrix. A matrix is an arrangement of numbers in rows and columns. Matrix can be of various type like square matrix, horizontal matrix, vertical matrix etc. So here we print the left diagonal ... Read More

Swift Program to Check whether a number is a Perfect Cube or not

Ankita Saini

Ankita Saini

Updated on 16-Feb-2023 16:43:03

A number is a perfect cube if the result of the three time multiplication of a whole number is the number itself. For example: number 5 is a per Number = 125 125 = 5*5*5 Here 125 is a perfect cube. Number = 98 Here 98 is not a perfect ... Read More

Swift Program to Check if the given number is Perfect number or not

Ankita Saini

Ankita Saini

Updated on 16-Feb-2023 16:41:41

A perfect number is a positive number that is equal to the sum of its factors, excluding the number itself. For example − Number = 6 Proper divisors = 1, 2, 3 Hence, 6 is the perfect number because the sum of its divisors is 6(1+2+3) Number = 10 Proper ... Read More

Swift Program to calculate the sum of rows of matrix elements

Ankita Saini

Ankita Saini

Updated on 16-Feb-2023 16:40:50

A matrix is an arrangement of numbers in rows and columns. Matrix can be of various type like square matrix, horizontal matrix, vertical matrix etc.In this article, we will learn how to write a swift program to calculate the sum of rows of matrix elements. Here we are using the ... Read More

Swift Program to Calculate the Sum of Matrix Elements

Ankita Saini

Ankita Saini

Updated on 16-Feb-2023 16:39:09

A matrix is a rectangular array of numbers. Or we can say that a matrix is an arrangement of numbers in rows and columns. Matrix can be of various type like square matrix, horizontal matrix, vertical matrix etc. In this article, we will learn how to write a swift ... Read More

Swift Program to calculate the sum of columns of matrix elements

Ankita Saini

Ankita Saini

Updated on 16-Feb-2023 16:38:01

A matrix is an arrangement of numbers in rows and columns. The matrix can be of various types like square, horizontal, vertical, etc. In this article, we will learn how to write a swift program to calculate the sum of columns of matrix elements. Here we are using the following ... Read More

Swift program to check if string is pangram or not

Ankita Saini

Ankita Saini

Updated on 08-Feb-2023 21:14:22

Pangram string is a string that contains all the English alphabet. For example − String = “The quick brown fox jumps over the lazy dog” Here the string is a pangram string which contains all the alphabetical characters from a to z in it. String = “ Hello! Swati how ... Read More

Swift Program to check whether a given string is Heterogram or not

Ankita Saini

Ankita Saini

Updated on 08-Feb-2023 21:13:54

Heterogram string is a string in which no alphabet occurs more than once. For example, “Sky with cloud” is a heterogram because in the string each alphabet occurred only once. Whereas “colorful balloons” is not a Heterogram because in the string some alphabet like o, u, l, etc appears more ... Read More

Swift Program to check if a given string is Keyword or not

Ankita Saini

Ankita Saini

Updated on 08-Feb-2023 20:21:51

Keywords are reserved words used to perform some internal process or represent predefined actions. It is not allowed to use these keywords as a variable name, constant name, or identifier. Swift support approx 101 keywords. For example, ‘var’ is a keyword but ‘hey’ is not a keyword. Here, we ... Read More

1 2 3 4 5 ... 22 Next
Advertisements