0
Write a program to check if a number is triangular or not.
8 Answers
+ 2
You sum number starting of with 1 and if this sum is >= your input number, you compare it with your input number. If it's equals, return true.
https://code.sololearn.com/cUXMSuP9F6mQ/?ref=app
+ 1
Thanks for the solution.
+ 1
Glad I could help.
0
which country are you from?
0
Germany
0
Oh! that's great
0
And you?
0
India.