โ† Salesforce questions

Print odd and even numbers using two threads in order

Filed under Salesforce

Print numbers from 1 to N using two threads, where one thread prints only odd numbers and the other prints only even numbers.

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 Salesforce questions

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