AYUSH MISHRA has Published 134 Articles

PHP Program to Print Multiplication Table

AYUSH MISHRA

AYUSH MISHRA

Updated on 31-Jan-2025 19:50:47

9K+ Views

A multiplication table is a useful mathematical tool that is used to print the products of a given number with a range of values, generally, it is printed from 1 to 10. In this article, we are going to learn multiple ways to generate and print multiplication tables in PHP. ... Read More

Python Program to Find Cube of a Number

AYUSH MISHRA

AYUSH MISHRA

Updated on 31-Jan-2025 19:50:03

6K+ Views

The Cube of a number is a simple mathematical operation where a number is multiplied by itself three times. In Python, there are multiple ways to find the cube of a number. In this article, we are going to discuss various approaches to calculating the cube of a number in ... Read More

C++ Program for Absolute Sum of Array Elements

AYUSH MISHRA

AYUSH MISHRA

Updated on 31-Jan-2025 11:16:24

6K+ Views

In 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 absolute ... Read More

C# Program to Find the Sum of First N Natural Numbers

AYUSH MISHRA

AYUSH MISHRA

Updated on 30-Jan-2025 18:34:05

6K+ Views

We are given a number N, and we need to calculate the sum of the first N natural numbers. In this article, we are going to learn how we can find the sum of the first N natural numbers in C#. Example 1 Input: N = 3 Output: ... Read More

C++ Program to Print a Triangle Star Pattern

AYUSH MISHRA

AYUSH MISHRA

Updated on 30-Jan-2025 18:33:09

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 triangle pattern. In this article, we are going to learn how to print a Triangle Star Pattern using C++. What is a Triangle Pattern? ... Read More

Convert a number to Roman numerals in C#

AYUSH MISHRA

AYUSH MISHRA

Updated on 27-Jan-2025 13:16:12

4K+ Views

Problem Description In this problem, we are given a number, and we need to convert it to its equivalent Roman number representation using C#. Example 1 Input: number = 58 Output: Roman numeral = LVIII Explanation: 58 in Roman numerals ... Read More

C++ Program to Calculate Volume of Capsule

AYUSH MISHRA

AYUSH MISHRA

Updated on 27-Jan-2025 13:15:57

17K+ Views

A capsule is a three-dimensional geometric shape that consists of a cylindrical body with hemispherical ends on both sides. The volume of a capsule can be calculated by adding the volume of the cylindrical part and the volume of the two hemispherical ends present on both sides of the cylindrical ... Read More

JavaScript Program to Find the average of all positive numbers in an array

AYUSH MISHRA

AYUSH MISHRA

Updated on 27-Jan-2025 12:33:21

5K+ Views

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

Find the sum of cubes of the first N natural numbers in C#

AYUSH MISHRA

AYUSH MISHRA

Updated on 24-Jan-2025 16:21:48

4K+ Views

Problem Description We are given a number N, and we need to calculate the sum of the cubes of the first N natural numbers. In this article, we are going to learn how we can find the sum of cubes of the first N natural numbers C#. Example 1 ... Read More

Calculate the sum of squares of the first N natural numbers in C#

AYUSH MISHRA

AYUSH MISHRA

Updated on 24-Jan-2025 16:21:30

4K+ Views

Problem Description In this problem, we are given a number n, and we need to calculate the sum of the squares of the first N natural numbers. In this article, we are going to discuss different approaches to solving this problem using C#. Example 1 ... Read More

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