coderz.py

Keep Coding Keep Cheering!

Accessing Elements of 2-D Array

Accessing Elements of a 2-D Array: The most basic type of multidimensional array in C++ is a two-dimensional array. One way to think of it is as an array of arrays. A two-dimensional array is also called a matrix. Let us take a look at the accessing of its elements. There are 2 ways to access the […]

December 13, 2022 | C++ | No comments

Program to Reverse an Array

When an array is reversed, the elements of the original array are changed in order. With this method, the first element becomes the last and the last element becomes the last one in the array. However, the procedure keeps going until all characters or array elements are completely inverted. Program Code: Output: Note: also read about Program […]

December 12, 2022 | C++ | No comments

Program To find Average Of Array

In this program, we will learn about taking integer input from the user and storing it in the array. Then we will find the sum of all array elements using for loop and finally calculate the average of N input numbers stored in an array. Program code: Output: Note: also read about Python Class Follow Me […]

December 8, 2022 | C++ | No comments

Program To Perform All Arithmetic Operations Using Functions

For two variables entered by the user, we must create separate functions for addition, subtraction, division, and multiplication. Program Code: Output: Note: also read about Program to check Palindrome string Follow Me Please follow me to read my latest post on programming and technology if you like my post. https://www.instagram.com/coderz.py/ https://www.facebook.com/coderz.py Rabecca FatimaStaying up to the […]

December 5, 2022 | C++ | No comments

Program to check Palindrome string

A string is said to be a palindrome if the reverse of the string is the same as the string. For instance, Program Code: Output: Note: also read about Find the Reverse of a Number Follow Me Please follow me to read my latest post on programming and technology if you like my post. https://www.instagram.com/coderz.py/ https://www.facebook.com/coderz.py […]

December 3, 2022 | C++ | No comments

Find the Reverse of a Number

When a number is reversed, the digits are rearranged in reverse order, starting with the last digit, then the second-to-last digit, and so on, with the first digit appearing last. Program Code: Output: Note: also read about Armstrong Number in C++ Follow Me Please follow me to read my latest post on programming and technology if you […]

November 27, 2022 | C++ | No comments

Armstrong Number in C++

What is Armstrong Number? The Armstrong number is a number that is equal to the sum of its digits’ cubes. Armstrong numbers include 0, 1, 153, 370, 371, and 407. Let’s look at why 371 is amrstrong in nature: Approach: The approach is to first count the number of digits (or find the order). Let […]

November 23, 2022 | C++ | No comments

Factorial of a given Number

What is Factorial of a number? The product of all positive descending integers is the factorial of n. n! represents the factorial of n. As an example: 4! is pronounced “4 factorial” in this context, and it is also known as “4 bang” or “4 shriek.” The factorial is typically used in Combinations and Permutations […]

November 23, 2022 | C++ | No comments

Find Fibonacci Series

The Fibonacci Series generates the next number by adding two preceding numbers. The Fibonacci sequence begins with two numbers, F0 and F1. F0 and F1 can have initial values of 0 and 1, respectively. For instance, Program Code: Output: Note: also read about Convert Decimal to Binary Follow Me Please follow me to read my latest […]

November 18, 2022 | C++ | No comments

Swap Two Numbers Without Using Third Variable

By using the + and – operators, we can swap two numbers without using a third variable. Main logic: Program code: Output: Note: also read about Check for palindrome number Follow Me Please follow me to read my latest post on programming and technology if you like my post. https://www.instagram.com/coderz.py/ https://www.facebook.com/coderz.py Rabecca FatimaStaying up to the […]

November 12, 2022 | C++ | No comments

Advertisement