Question: Solve using c++ (urgent please) Code #2 (for loop, if-else) The triangular number sequence is the representation of the numbers in the form of equilateral
Code \#2 (for loop, if-else) The triangular number sequence is the representation of the numbers in the form of equilateral triangle arranged in a series or sequence. These numbers are in a sequence of 1,3,6,10,15,21,28, 36,45 , and so on. The formula used to generate the nth Triangle number is as follows: Tn=k=1nk=1+2+3++n Write a program that takes an integer from the user and determines if the number is part of the Triangle sequence, or not. Note that the program should NOT allow the user to input a value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
