← Zoho questions

Print concentric rectangle border pattern

Filed under Zoho

Given two integers N and M representing rows and columns, generate a rectangular pattern. The outer boundary of the rectangle must be filled with the character 'X', while all interior positions must…

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.