Rabecca Fatima

Swap Two Numbers Without Using Third Variable

By using the + and - operators, we can swap two numbers without using a third variable. Main logic: //Logic…

3 years ago

Check for palindrome number

A palindrome number is a number that remains the same when digits are reversed. For example, the number 125521 is a palindrome…

3 years ago

Find Max Number Among the Given Three Number Using If/Else Statements

n1 is compared to n2. If n1 is larger than n2, it is compared to n3. If it is greater than n3…

3 years ago

Check for Prime number

A prime number is greater than one and can be divided by one or itself. In other words, prime numbers…

3 years ago

Python 2 vs. Python 3

Python is one of the programming languages that has boosted the world of technology to new heights. Python 2 and…

3 years ago

Introduction to Python IDLE

What is Python IDLE? Python IDLE is an acronym that stands for Integrated Development and Learning Environment. is a very…

3 years ago

Diamond Pattern Using Numbers

Program code: #include<iostream> using namespace std; void display(int n) { int space = n / 2, num= 1; for (int…

3 years ago

Floyd’s Triangle

Floyd’s triangle is a triangular array of natural numbers and it is named after Robert Floyd, a renowned computer scientist popularly…

3 years ago

Pascals triangle

Pascals triangle is a triangular array of binomial coefficients. The numbers outside Pascals triangle are all "0". These "0s" are…

3 years ago

Python Installation

Python Installation on Windows involves the following steps to set up the Python environment on a Windows system: Go to python.org/downloadDownload…

3 years ago