Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python3 code to find Triangular Number Series  

# Python3 code to find Triangular
# Number Series
  
def triangular_series(n):
  
     for i in range(1, n + 1):
         print( i*(i+1)//2,end=' ')
  
# Driver code
n = 5
triangular_series(n)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #code #find #Triangular #Number #Series
ADD COMMENT
Topic
Name
2+5 =