Revathi Satya has Published 8 Articles

Program to find sum of series 1 + 2 + 2 + 3 + 3 + 3 + .. + n in C++

Revathi Satya

Revathi Satya

Updated on 17-May-2024 10:51:51

498 Views

In this article, we are given a number n that denotes the nth term of the series. Our task is to create a Program to find sum of series 1 + 2 + 2 + 3 + 3 + 3 + .... + n in C++. This series is different ... Read More

Maximum Sum Decreasing Subsequence in C++

Revathi Satya

Revathi Satya

Updated on 16-May-2024 20:07:51

189 Views

In this article, we are given an array arr[] of N integers. Our task is to find the Maximum Sum Decreasing Subsequence in C++. A Maximum Sum Decreasing Subsequence (MSDS) is a subsequence of a given sequence of array. Here the sequence elements are ordered in decreasing arrangement and the ... Read More

Maximum sum of distinct numbers with LCM as N in C++

Revathi Satya

Revathi Satya

Updated on 16-May-2024 19:59:34

200 Views

In this article, we are given a number N. Our task is to create a program to find the maximum sum of distinct numbers with LCM as N in C++. To achive this first of all we need to find the sum of maximum numbers that have N as the ... Read More

Program to find smallest difference of angles of two parts of a given circle in C++

Revathi Satya

Revathi Satya

Updated on 16-May-2024 19:43:48

149 Views

In this article, we will find the smallest difference in angles between two parts of a given circle using the C++ programming language. Before proceeding to the code, let’s first understand how we can calculate the angles to find the smallest difference between them. We are given the angles of ... Read More

Program to find sum of given sequence in C++

Revathi Satya

Revathi Satya

Updated on 16-May-2024 19:40:20

501 Views

In this article, we are given two numbers n and k representing a series. Our task is to create a program in C++ that finds the sum of the sequence given below: The input cycle is the process of adding up all the numbers in the given sequence to get a single output. The ... Read More

Program to find slope of a line in C++

Revathi Satya

Revathi Satya

Updated on 07-May-2024 14:53:38

788 Views

In this article, we will learn how to find the Slope of a line using a program. But before we proceed into the program, let's first understand what the Slope of a line represents in mathematics and how to compute it using its mathematics formula in C++. In mathematics, the Slope of ... Read More

Maximum sum and product of the M consecutive digits in a number in C++

Revathi Satya

Revathi Satya

Updated on 07-May-2024 14:53:30

165 Views

In this article, we are given a string representing a number. Our task is to create a program in C++ to find the maximum sum and product of M consecutive digits from the given number. We find all sequences of M consecutive digits and return the maximum sum and product. ... Read More

Program to find the common ratio of three numbers in C++

Revathi Satya

Revathi Satya

Updated on 07-May-2024 14:53:17

289 Views

In this article, Our task is to create a Program to find the common ratio of three numbers in C++. The common ratio of three numbers is usually the same ratio between two numbers multiplied by each other to get the next one. When a particular number of terms in ... Read More

1
Advertisements