AYUSH MISHRA has Published 134 Articles

Python Program to find area of square

AYUSH MISHRA

AYUSH MISHRA

Updated on 25-Feb-2025 15:09:02

21K+ Views

A square is a closed two-dimensional figure having 4 equal sides. Each angle of a square is 90 degrees. The area of a square is the space enclosed within its four sides. In this problem, we are given the side of a square, and we have to find the area ... Read More

How to Add Two Numbers in PHP Program?

AYUSH MISHRA

AYUSH MISHRA

Updated on 07-Feb-2025 11:19:32

21K+ Views

Problem Description In this problem, we are given two numbers, and we have to find the value obtained after adding one number to another. In this article, we are going to learn how we can add two numbers in PHP using different approaches. Example 1 Input $number1 = 8; $number2 = ... Read More

C++ Program of Absolute sum of array elements

AYUSH MISHRA

AYUSH MISHRA

Updated on 05-Feb-2025 15:33:47

6 Views

Problem DescriptionIn this problem, we are given an array of integers, and our task is to calculate the absolute sum of its elements. The absolute sum means the sum of the absolute values of all the array elements. In this article, we are going to learn how to compute the ... Read More

Python Program to Calculate nCr and nPr

AYUSH MISHRA

AYUSH MISHRA

Updated on 05-Feb-2025 13:03:14

11K+ Views

In combinatorics, nCr and nPr are essential formulas used to calculate combinations and permutations. They represent the number of ways to select and arrange objects from a set. nCr refers to combinations, where order does not matter, while nPr refers to permutations, where order does matter. The permutation ... Read More

Python Program to Find Average of Array Elements

AYUSH MISHRA

AYUSH MISHRA

Updated on 04-Feb-2025 16:17:53

9K+ Views

In this article, we will learn how to find the average of array elements using Python, along with examples to demonstrate the implementation. In this problem, we are given an array of integers, which may contain both positive and negative numbers. Our task is to calculate the average of all ... Read More

Python Program to Toggle Each Character in a String

AYUSH MISHRA

AYUSH MISHRA

Updated on 04-Feb-2025 16:17:21

11K+ Views

In this problem, we are given a string, and the task is to toggle the case of each character in the string. This means that all lowercase letters should be converted to uppercase, and all uppercase letters should be converted to lowercase. In this article, we are going to explore ... Read More

Python Program for sum of the series: 1 + 1/2 + 1/3 + ... + 1/n

AYUSH MISHRA

AYUSH MISHRA

Updated on 04-Feb-2025 16:14:23

14K+ Views

Mathematical series is one of the problems that helps us to improve problem-solving and logical thinking skills One of the engaging problems is calculating the sum of the harmonic series. The series 1 + 1/2 + 1/3 + ⋯⋯ + 1/n is known as the harmonic series. In this article, ... Read More

Python Program to Implement Ternary Search

AYUSH MISHRA

AYUSH MISHRA

Updated on 04-Feb-2025 02:33:27

10K+ Views

Searching is one of the most fundamental operations in computer science, and there are multiple algorithms to perform it efficiently. While Binary Search is mainly known to be applied to sorted array searching, Ternary Search is another efficient searching technique that also works on sorted arrays for searching. What ... Read More

Java Program to Find the Volume of Cylinder

AYUSH MISHRA

AYUSH MISHRA

Updated on 04-Feb-2025 02:19:25

16K+ Views

A cylinder is a three-dimensional geometric shape with two parallel circular bases connected by a curved surface. The volume of a cylinder can be calculated using a mathematical formula that considers its radius and height. Problem Description In this tutorial, we are going to discuss how to find the volume ... Read More

C# Program to Find Volume, Perimeter and Surface Area of Cuboid

AYUSH MISHRA

AYUSH MISHRA

Updated on 04-Feb-2025 02:03:08

6K+ Views

What is a Cuboid? A cuboid is a three-dimensional figure with six rectangular faces, where opposite faces are equal in dimensions. We can calculate the volume, perimeter, and surface area of a cuboid using specific formulas based on its length, breadth, and height. Problem Statement Given length, breadth, and height. ... Read More

Previous 1 ... 3 4 5 6 7 ... 14 Next
Advertisements