Capgemini Interview Question

Program logic to print odd numbers