← Zoho questions

Print Pascal's Triangle pattern

Filed under Zoho · Also reported at LTIMindtree

Given an integer `numRows`, generate and return the first `numRows` of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Zoho questions

Collected from public candidate posts and coding forums. Updated Nov 2026.