## Program to find the common ratio of three numbers

Given a:b and b:c. The task is to write a program to find ratio a:b:c Examples: Input: a:b = 2:3, b:c = 3:4 Output: 2:3:4… Read More »

Given a:b and b:c. The task is to write a program to find ratio a:b:c Examples: Input: a:b = 2:3, b:c = 3:4 Output: 2:3:4… Read More »

Calculators are widely used device nowadays. It makes calculations easier and faster. Calculators are used to everyone in daily life. A simple calculator can be… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 0, 7, 18, 33, 51,… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 0, 10, 30, 60, 99,… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 2, 12, 28, 50, 77,… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 0, 11, 28, 51, 79,… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 4, 14, 28, 46, 68,… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 1, 6, 17, 34, 56,… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 0, 9, 22, 39, 60,… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 3, 12, 29, 54, 86,… Read More »

Given the vertices of the triangle. The task is to find the centroid of the triangle: Examples: Input: A(1, 2), B(3, -4), C(6, -7) Output:… Read More »

Given Marked Price and Selling price as of a product. The task is to calculate the Discount Percentage applied to that product. Examples: Input: M… Read More »

Given a series and a number N. The task is to find the Nth term of the given series: 3, 20, 63, 144, 230 …..… Read More »

Given a number N, the task is to find the sum of first N terms of the below series: Sn = 2 + 10 +… Read More »

Given a number N. The task is to write a program to find the Nth term of the below series: 5, 10, 17, 26, 37,… Read More »