About 15,200 results
Open links in new tab
  1. Program to print triangular number series till n - GeeksforGeeks

    Feb 8, 2023 · Iterate for loop till the value given n and for each iteration increase j by 1 and add it into k, which will simply print the triangular number series till n. Below is the program …

  2. Floyd’s Triangle Algorithm and Flowchart - Code with C

    Sep 13, 2023 · In this post, I have presented a simple algorithm and flowchart for Floyd’s triangle along with a brief introduction to Floyd’s triangle and some of its important properties. In …

  3. Sum of the series 1, 3, 6, 10… (Triangular Numbers)

    Aug 16, 2022 · Given n, no of elements in the series, find the summation of the series 1, 3, 6, 10….n. The series mainly represents triangular numbers. A simple solution is to one by one …

  4. Triangular Numbers - GeeksforGeeks

    Feb 12, 2025 · We form a quadratic equation by equating the number to the formula of sum of first ‘n’ natural numbers, and if we get atleast one value of ‘n’ that is a natural number, we say that …

  5. Triangular Numbers. In programming, the series that… | by

    Sep 20, 2020 · Here is a short algorithm to generate these triangles in python: if n <= 1: triangle = [['*']] res.append(triangle) return triangle. row = ['*'] * n. triangle = [row] + create_triangles(n - 1,...

  6. Triangular Numbers - 101 Computing

    Sep 26, 2018 · A triangular number correspond to the number of dots that would appear in an equilateral triangle when using a basic triangular pattern to build the triangule. The triangular …

  7. Is there a one-line function that generates a triangle wave?

    To get a variation of the triangular wave that has curves rather than straight lines, you just need to introduce an exponent into the equation to make it quadratic. Concave curves (i.e. x^2 shape): …

  8. Sum of the Series: Triangular Numbers in C++ - Online Tutorials …

    Learn how to calculate the sum of the series of triangular numbers 1, 3, 6, and 10 using C++. Step-by-step guide and code examples included.

  9. Triangular Number Sequence | GeeksforGeeks

    Oct 16, 2024 · If we are given a sequence of triangular numbers, to determine the next number in the series, follow the below given steps: Calculate the difference between the two consecutive …

  10. Triangular Series | Interview Cake - Interview Cake: Programming ...

    Triangular series are simple increasing integers starting from 1, like {1,2,3,4,5}. There's a formula we can use to quickly calculate the sum of a triangular series.

Refresh