AYUSH MISHRA has Published 134 Articles

C# Program to Reverse a Number

AYUSH MISHRA

AYUSH MISHRA

Updated on 04-Dec-2024 12:56:24

7K+ Views

Reversing a number is a simple and fundamental question in the world of programming. Problem Description In this problem, we are given an integer n and we have to reverse its digit and print the reversed number. In this article, we are going to discuss different approaches to reverse a ... Read More

C# Program to Find Prime Numbers Within a Range

AYUSH MISHRA

AYUSH MISHRA

Updated on 04-Dec-2024 12:41:48

4K+ Views

In this article, we are going to discuss how we can find prime numbers present within a given range using C#. What are prime numbers? Prime numbers are sets of natural numbers greater than 1 that have only two factors i.e. 1 and itself. They have no other positive divisors ... Read More

PHP Program to Check if a Number is an Armstrong Number

AYUSH MISHRA

AYUSH MISHRA

Updated on 03-Dec-2024 18:37:49

5K+ Views

Armstrong Number Armstrong number is a number in which the sum of its digits raised to the power of the number of digits is equal to the number itself. In this article, we are going to discuss how we can check if a given number is Armstrong number or not. ... Read More

C# program to calculate compound interest

AYUSH MISHRA

AYUSH MISHRA

Updated on 29-Nov-2024 17:58:55

4K+ Views

Compound interest is interest where the interest is calculated by adding the interest that has already been calculated in a previous time period. In this article, we are going to discuss how we can calculate compound interest using C#. What is Compound Interest? Compound Interest is the interest that ... Read More

C++ program to return all Boundary Elements of a Matrix

AYUSH MISHRA

AYUSH MISHRA

Updated on 28-Nov-2024 11:49:26

7K+ Views

boundary elements of a matrix The boundary elements of a matrix are those elements that lie along its edges. A matrix is a two-dimensional array that can be of any given size. The boundary elements are those present on the edges of the matrix. Problem Description We are given ... Read More

C++ Program to Return Quadrants in which a given Coordinates Lies

AYUSH MISHRA

AYUSH MISHRA

Updated on 28-Nov-2024 11:31:47

7K+ Views

Cartesian-coordinate System and Quadrants The cartesian-coordinate system is divided into four Quadrants: Quadrant I, Quadrant II, Quadrant III, and Quadrant IV. In this article, we are going to learn how we can determine the quadrant in which given points i.e., x and y, lie. Problem Description We are given ... Read More

Parallelogram Star Pattern using C++

AYUSH MISHRA

AYUSH MISHRA

Updated on 28-Nov-2024 11:14:45

10K+ Views

When we start learning to code, practicing star patterns is one of the best ways to improve logic building. One of the engaging patterns is the parallelogram pattern. In this article, we are going to learn how to print a Parallelogram Star Pattern using C++. What is Parallelogram Pattern? ... Read More

check if a given array represent min-heap or not

AYUSH MISHRA

AYUSH MISHRA

Updated on 22-Nov-2024 15:00:07

5K+ Views

A Heap is a Tree-based data structure in which the tree is a complete binary tree. Binary heap is of two types max heap and min heap. A min-heap is a tree-like structure in which the value of the parent node should always be less than both of its left ... Read More

C++ Program to check if a Number is Harshad Number

AYUSH MISHRA

AYUSH MISHRA

Updated on 22-Nov-2024 08:56:51

0 Views

What is Harshad Number?A Harshad number is a special type of number. A Harshad number or Niven number is a number that is completely divisible by the sum of its digits without leaving any remainder. In this article, we are going to learn how we can check whether a given ... Read More

C++ Program for Sum of Infinite Terms in GP

AYUSH MISHRA

AYUSH MISHRA

Updated on 21-Nov-2024 19:28:56

9K+ Views

What is Geometric Progression (GP)? Geometric Progression (GP) is a sequence of numbers where each term is generated by multiplying the previous term by a constant value. This constant value in GP is known as the common ratio. In this article, we are going to discuss how to calculate the ... Read More

Advertisements