Floyd triangle is right angle triangled which is named after Rober Floyd. It is created with the help of natural numbers starting from 1 in the top left corner and then the consecutive numbers are filled in the specified rows. Example Demonstration Input 4 Output 1 2 3 4 5 6 7 8 9 10 Here, the size of Floyd’s triangle is 4. So it will print Floyd’s triangle until 4 rows. In Swift, we can print Floyd’s triangle using the following methods: Using for−in loop Using while loop Using recursive function Algorithm ... Read More
A Calculator is an electronic device which is used to perform different types of mathematical operations like subtraction, addition, division, multiplication, etc. We can also create a calculator using Switch case and simple arithmetic operations in Swift programming. It will also perform the same mathematical operations as the original calculator. Example Demonstration Enter any two numbers: Number 1: 43 Number 2: 234 SIMPLE CALCULATOR 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Percentage Choose (1/2/3/4/5): 2 Result = -191.0 Here, we first enter the numbers on which we want to perform the ... Read More
Swapping pair of characters is a process of interchanging the position of two characters in the given string. This operation is commonly used in various programming languages and applications to manipulate data. Example Input “mumbai” Output umbmia Input “Prita” Output rPtia Here, we divide the given string into a pair of characters like “mumbai”: “mu”, “mb”, “ai”. Now we swap the positions of the characters: “um”, “bm”, and “ia” and create the resultant string: “umbmia”. Similarly for input 2. In Swift, we can swap the pair of characters present in the given ... Read More
The task we are going to perform in this article is to design a table using tag and its attributes. For creating the structure of the table we use the and later we use attributes to design the table. Let's dive into the article for getting more idea on creating a table using the tag and its attributes. We use the tag to build a table, and its characteristics will be used to design the table. Cellspacing, cellpadding, border, background color, and other attributes will be used to design the table. HTML tag We occasionally ... Read More
Tetrahedron is a triangular base pyramid. It is a platonic solid with four triangular faces, six straight edges and four vertex corners. Where each vertex is connected with every other vertex and each face is of an equilateral triangle. In Swift, we can calculate the volume of a tetrahedron using the following formula: Formula $$\mathrm{Area=(x*x*x*\sqrt{2})/12}$$ Here, x represents the sides of the tetrahedron. Algorithm Step 1 − Create a function which takes the side of the tetrahedron as a parameter and returns the volume. Step 2 − Inside the function, we use the mathematical formula to find the volume ... Read More
The task we are going to perform in this article is to add a telephone number into a form using HTML5. We are aware of the numerous benefits of using phone numbers. In case you need to collect a user's personal information, a telephone number is crucial. Additionally, a user may receive numerous messages or notifications on the form services. Let's dive into the article for getting better understanding on adding a telephone number into a form using HTML5. This can be done by using the . Using Tag A phone number can be entered and edited using ... Read More
Tetrahedron is a 3−D triangular pyramid shape whose base is also a triangle. Generally, a tetrahedron contains four equilateral triangles, hence it has interior angles of 60 degrees. In Swift, we can calculate the area of a tetrahedron using the following formula: Formula $$\mathrm{Area=\sqrt{3}*X*X}$$ Here, x represents the side of the tetrahedron. If you wish to find the area of one side of a tetrahedron then you can use the following formula: Formula $$\mathrm{Area\:of\:one\:side\:of\:tetrahedron =(\sqrt{3}*y*y)/4}$$ Here, y represents the side of the tetrahedron. Algorithm Step 1 − Create a function which takes the side of the tetrahedron ... Read More
When working with huge datasets or text-heavy documents in Excel, you may have run into circumstances where you needed to remove text that was encased in brackets or brackets in order to clear up the content. Excel provides a number of easy ways to remove annotations, footnotes, or any other textual contents that are encapsulated in these symbols. This step-by-step article will guide you through several methods for removing text enclosed in brackets or brackets that are appropriate for various Excel versions. By the end of this session, you will have the skills necessary to effectively remove text that ... Read More
In this tutorial, we'll show you step-by-step how to delete the text indication, sometimes referred to as the single quotation or apostrophe ('), from Excel cells. In order to instruct Excel to treat a value as text, the single quotation is frequently used as a prefix, which might be useful in some circumstances. To convert the data into numerical or date formats or just to clean up your spreadsheet, you might want to remove this indicator in some circumstances. We will examine various approaches to accomplishing this work throughout this tutorial, taking into account both individual cells and entire columns. ... Read More
Powerful tools for data organisation, analysis, and presentation include Microsoft Excel. You can use one of its features to give the tabs at the bottom of your workbook colour, which makes it simpler to identify between various pages and enhances the workspace's overall appearance. To preserve continuity or conform to a different theme, you might want to delete or alter the tab colour in some circumstances. This step-by-step tutorial will show you how to remove Excel tab colours using a variety of techniques. These methods are easy to use and powerful, regardless of your level of experience. You will have ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP