Print patterns and conditional exception handling
Filed under American Express
The question
Write code to print two specific star patterns, and process a number with conditions for divisibility by 3, 5, or both, throwing exceptions for zero or negative numbers.
No write-up yet. Related questions below have one.
Related American Express questions
Collected from public candidate posts and coding forums. Updated Nov 2026.