Checks if a given number is a triangular number. Triangular numbers are of the form n(n+1)/2, where n is a non-negative integer.
true if num is a triangular number, false otherwise.
true
num
false
Checks if a given number is a triangular number. Triangular numbers are of the form n(n+1)/2, where n is a non-negative integer.