Nishu Kumari has Published 83 Articles

C++ Program to Access Elements of an Array Using Pointer

Nishu Kumari

Nishu Kumari

Updated on 15-May-2025 19:45:32

14K+ Views

In this article, we'll show you how to write a C++ program to access elements of an array using pointer. A pointer is a variable that holds the memory address of another variable, allowing us to reference it directly. In other words, pointers point to a memory location ... Read More

C++ program to Reverse a Sentence Using Recursion

Nishu Kumari

Nishu Kumari

Updated on 15-May-2025 19:44:29

2K+ Views

In this article, we will write a C++ program to reverse a sentence using recursion. Reversing a sentence means changing the order of all its characters in each word, so the first character moves to the end, the last character comes to the front, and the middle characters follow ... Read More

C++ Program to Check Armstrong Number

Nishu Kumari

Nishu Kumari

Updated on 15-May-2025 19:43:53

1K+ Views

An armstrong number is a positive integer that is equal to the sum of its digits, each raised to the power of the total number of digits in the number. Our goal here is to check armstrong numbers in C++. In simple terms, for a number with n digits: ... Read More

C++ Program to Display Armstrong Number Between Two Intervals

Nishu Kumari

Nishu Kumari

Updated on 15-May-2025 19:43:05

2K+ Views

An armstrong number is a positive integer that is equal to the sum of its digits, each raised to the power of the total number of digits in the number. Our goal here is to display the armstrong numbers between two intervals in C++. In simple terms, for a ... Read More

C++ Program to Add Two Matrix Using Multi-dimensional Arrays

Nishu Kumari

Nishu Kumari

Updated on 15-May-2025 19:42:23

2K+ Views

A matrix is a rectangular array of numbers arranged in rows and columns. To add two matrices, they must be the same size. We add each number in the first matrix to the number in the same position in the second matrix to get a new matrix An example ... Read More

C++ Program to Display Prime Numbers Between Two Intervals

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 18:46:48

506 Views

A prime number is a number greater than 1 that has no divisors other than 1 and itself. For example, 2, 3, 5, 7, and 11 are prime numbers. In this article, we'll show you how to write a C++ program to display prime numbers between two intervals. ... Read More

C++ Program to Display Prime Numbers Between Two Intervals Using Functions

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 18:45:09

2K+ Views

A prime number is a number greater than 1 that has no divisors other than 1 and itself. For example, 2, 3, 5, 7, and 11 are prime numbers. In this article, we'll show you how to write a C++ program to display prime numbers between two intervals using ... Read More

C++ program to Find Sum of Natural Numbers using Recursion

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 18:44:02

2K+ Views

Natural numbers are positive numbers starting from 1, such as 1, 2, 3, and so on. Here, we will take a positive number n as input and and then will find the sum of all natural numbers from 1 up to n using recursion using C++ program. Example Input: ... Read More

C++ Program to Calculate Power Using Recursion

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 17:12:30

5K+ Views

Calculating a power means multiplying the base by itself as many times as the exponent indicates. In this article, we'll show you how to write a C++ program to calculate the power of a number using recursion.  For example, 2 raised to the power of 3 (2^3) means ... Read More

C++ Program to Calculate Average of Numbers Using Arrays

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 17:10:42

8K+ Views

An array stores multiple values of the same data type. To find the average, we add all the numbers and then divide the total by how many numbers there are. In this article, we'll show you how to write a C++ program to calculate the average of numbers using ... Read More

Advertisements