💻ap computer science a review

Printing a Number Triangle

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

Printing a number triangle refers to the process of generating a pattern of numbers in the shape of a triangle using nested loops and print statements. Each row of the triangle consists of consecutive numbers, starting from 1 and increasing by one for each subsequent row.

"Printing a Number Triangle" also found in:

2,589 studying →