GeeksforGeeks Question · Oct 2021

Print the first N terms of the series 6, 28, 66, 120, 190, 276, ...

Question Details

Given a number N, the task is to print the first N terms of the series 6, 28, 66, 120, 190, 276, and so on.Examples:Input: N = 10Output: 6 28 66 120 190 276 378 496 630 78...

Full Details

🔒

Unlock all Tcs questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a tcs interview for a swe role reported in 2021.

It covers the following topics: Strings .

Topics