To find the Nth term in the series 1, 3, 6, 10, 15, 21…in C programming

前端 未结 0 1643
予麋鹿
予麋鹿 2021-02-05 11:59

The condition to find the nth term in the given series is ((n * n) + n) / 2, but using in the code gives garbage value. What\'s wrong in here, as it looks pretty simple to me!

相关标签:
回答
  • 消灭零回复
提交回复
热议问题