Rectangular ( or Pronic ) Numbers | CPP Program to find n - th rectangular number ; Returns n - th rectangular number ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int findRectNum ( int n ) { return n * ( n + 1 ) ; } int main ( ) { int n = 6 ; cout << findRectNum ( n ) ; return 0 ; }