Nishu Kumari has Published 122 Articles

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

In this article, we will understand how to display all the prime numbers from 1 to N in Java. All possible positive numbers from 1 to infinity are called natural numbers. A number is a prime number if its only factors are 1 and itself and cannot be divided by ... 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

558 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

C++ Program to Check Leap Year

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 17:07:56

14K+ Views

A leap year contains one additional day, i.e february 29, to keep the calendar year synchronized with the earth's orbit around the sun. We will write a C++ program that checks whether a given year is a leap year or not. A year that is divisible by 4 ... Read More

Previous 1 ... 5 6 7 8 9 ... 13 Next
Advertisements