Manisha Chand has Published 34 Articles

Java program to print downward triangle star pattern

Manisha Chand

Manisha Chand

Updated on 22-Aug-2025 15:31:15

863 Views

In this article, we will understand how to print a downward triangle star pattern using Java. In this pattern, the face of the triangle will be in a downward direction, and the base will be in an upward direction. We will learn through two examples: one where the user inputs ... Read More

Java Program to Interchange the Diagonals

Manisha Chand

Manisha Chand

Updated on 22-Aug-2025 15:28:20

294 Views

In this article, we will understand how to interchange the diagonal elements of a given matrix in Java. A matrix is a two-dimensional array made up of rows and columns. A matrix with m rows and n columns is called an m × n matrix. ... Read More

Angle between a chord and a tangent when angle in the alternate segment is given in C++?

Manisha Chand

Manisha Chand

Updated on 08-Aug-2025 11:17:45

160 Views

In this problem, we are given a circle whose chord and tangent meet at a particular point. The angle in the alternate segment of a circle is given. We need to find the angle between the chord and the tangent. According to the Alternate Segment Theorem the angle between a ... Read More

Adding two polynomials using Linked List in C++.

Manisha Chand

Manisha Chand

Updated on 06-Aug-2025 19:24:24

27K+ Views

Adding two Polynomials using a Linked List in C++ Linked list is a data structure that stores each element as an object in a node of the list. Every node contains two parts data node and links to the next node. A polynomial is a mathematical expression that consists of variables ... Read More

All unique triplets that sum up to a given value in C++

Manisha Chand

Manisha Chand

Updated on 31-Jul-2025 15:40:28

431 Views

Unique Triplets that Sum up to a Given Value In this article, we will discuss different approaches to find all the unique triplets that sum up to the given value. Before that, first understand the given problem. We have been given an integer array with N elements, along with a ... Read More

Almost Perfect Number in C++

Manisha Chand

Manisha Chand

Updated on 31-Jul-2025 15:23:45

232 Views

Almost Perfect Number in C++ Almost Perfect Number is a positive integer n for which the sum of all its positive proper divisors (excluding the number itself ) is equal to n-1. (i.e., one less than the number n). It is also known as the least deficient number or slightly ... Read More

Aliquot sum in C++?

Manisha Chand

Manisha Chand

Updated on 31-Jul-2025 14:59:55

290 Views

Aliquot sum in C++ Aliquot sum of a positive integer n is the sum of all proper divisors of n. A positive proper divisor is a divisor of a number, excluding the number itself. For example, for n = 6; 1, 2, 3 are positive proper divisors but 6 itself ... Read More

Java program to read the number from standard input

Manisha Chand

Manisha Chand

Updated on 18-Jun-2025 18:17:59

2K+ Views

In Java, to read input from standard input(via keyboard), Java provides a built-in Scanner Class. In this article, we will understand how to read a number from standard input(via keyboard) in Java. The Scanner.nextInt() method of the Scanner class belongs to java.util package is used to read the number. The ... Read More

Java program to print left triangle star pattern

Manisha Chand

Manisha Chand

Updated on 18-Jun-2025 18:10:29

972 Views

In this article, we will understand how to print the left triangle star pattern in Java. This pattern is also known as the Mirrored Right Triangle Star pattern. Below is a demonstration of the same- Input: Number of rows: 6 Output: ... Read More

Java program to find sum of N numbers using recursion

Manisha Chand

Manisha Chand

Updated on 18-Jun-2025 18:07:15

565 Views

In this article, we will learn how to find the sum of N numbers using recursion in Java. Recursion is when a method calls itself repeatedly until a base condition is met. In Java, each recursive call is placed on the stack until the base case is reached, after which ... Read More

Advertisements