โ† Zoho questions

Print odd length string in X format

Filed under Zoho

Given an odd-length string, print its characters in an 'X' pattern. For example, '12345' prints '1 5', ' 2 4 ', ' 3 ', ' 2 4 ', '1 5'.

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.