Print odd and even numbers alternatively using two threads
Filed under Royal Bank of Scotland (RBS)
The question
Write a multithreaded program to print odd and even numbers alternately using two separate threads.
No write-up yet. Related questions below have one.
Related Royal Bank of Scotland (RBS) questions
Collected from public candidate posts and coding forums. Updated Nov 2026.