
- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures
- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces
Program to find N-th term of series 0, 10, 30, 60, 99, 150, 210, 280...in C++
In this tutorial, we will be discussing a program to find N-th term of series 0, 10, 30, 60, 99, 150, 210, 280...
For this, we will be provided with a number. Our task is to find the term for the given series at that particular position.
Example
#include <iostream> #include <math.h> using namespace std; //calculating nth term of series int nthTerm(int n) { return 5 * pow(n, 2) - 5 * n; } int main() { int N = 4; cout << nthTerm(N) << endl; return 0; }
Output
60
- Related Articles
- C++ program to find n-th term of series 2, 10, 30, 68, 130 …
- Program to find N-th term of series 0, 9, 22, 39, 60, 85, 114, 147, …in C++
- Program to find N-th term of series 1, 3, 12, 60, 360...in C++
- Program to find N-th term of series 1 4 15 24 45 60 92... in C++
- C++ program to find n-th term of series 1, 3, 6, 10, 15, 21…
- Program to find N-th term of series 0, 0, 2, 1, 4, 2, 6, 3, 8…in C++
- n-th term in series 2, 12, 36, 80, 150….in C++
- Program to find N-th term in the given series in C++
- Program to find N-th term of series 0, 2,1, 3, 1, 5, 2, 7, 3...in C++
- Program to find N-th term of series 0, 7, 8, 33, 51, 75, 102, 133...in C++
- Program to find N-th term of series 0, 11, 28, 51, 79, 115, 156, 203, …In C++
- Program to find N-th term of series 3, 6, 18, 24, … in C++
- C++ program to find n-th term in the series 7, 15, 32, …
- C++ program to find n-th term in the series 9, 33, 73,129 …
- C++ program to find n-th term of series 3, 9, 21, 41, 71…

Advertisements