I would like to know why, when I type in the program below, it checks if the number entered is triangular, that is, it is a multiple of three consecutive numbers, for example 60 it prints two "NO" and one "YES", and when I type 336 do five "NAO"...
asked by
19.04.2015 / 19:48