Print star pattern count

Java Easy 5 views
Back to Questions

Problem Description

Task: return total stars printed in a triangle of height n (1+2+...+n).

Input Format

Java method

Output Format

Return value

Constraints

Use formula or loop.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next