Sign InCreate Account

Upgrade to Pro

Upgrade Now

Coding Workspace

EditorProjectsPractice QuestionsTimed Mock ExamsFlowcharts

PseudoEditor AI

Pseudocode TutorCode GeneratorCode FixerCode Converter
Back to Problems
PreviousNext

Sign in to run tests against edge cases and save your code automatically.

Problem Description

Easy

Triangle of Stars

PROIteration & Loops
Nested Loops
String Building

Write a program that inputs a positive integer `n` and outputs a right-angled triangle of asterisks (`*`) with `n` rows. Row 1 has one asterisk, row 2 has two, and so on up to row `n`. For example, if `n` is 3 the output is: ``` * ** *** ```

Example Input

3

Example Output

* ** ***

Success Rate:

0% (0 passed / 0 attempted)

Code

Draft auto-saved

Test Results

Click "Test Code" to evaluate your code against the tests.

Product

For SchoolsOverviewFeaturesFAQ
PseudoEditor

© 2026 PseudoEditor. All rights reserved.