You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//*------- check if a number is a triangular number
//? This program checks if a given positive integer is a triangular number. A triangular number is a number that can be represented in the form of a triangle with dots. Mathematically, a triangular number T_n is given by the formula T_n = n*(n+1)/2.