Question bank › Math
Dsa Math Hard

Geometric Series Sum

Given the first term a, common ratio r, and number of terms n in a geometric series, calculate the sum of the series. The input will consist of three space-separated floats (a, r, n). Print the sum rounded to 2 decimal places. If r equals 1, the formula simplifies to S = n * a. Example input: 3 2 4 Example output: 48.00

Key concepts

mathseriescomputation

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of Praxari's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.