Rectangular ( or Pronic ) Numbers | Java Program to find n - th rectangular number ; Returns n - th rectangular number ; Driver code
import java . io . * ; class GFG { static int findRectNum ( int n ) { return n * ( n + 1 ) ; } public static void main ( String [ ] args ) { int n = 6 ; System . out . println ( findRectNum ( n ) ) ; } }