A society has multiple apartments, and each apartment has a certain number of people living in it asked in wipro feb 2022

A society has multiple apartments, and each apartment has a certain number of people living in it. A maximum of 9 people is allowed to live in one apartment. The society secretary would like an automated system that takes the number of people living in each apartment and combines it to form a string, providing information for all the apartments where an odd number of people are living. Write an algorithm to make an automated system that will find all the odd digits from the given number.




Comments

Popular posts from this blog

PERFECT SQUARE asked by MountainBlue

Harry and Porter asked in MountainBlue ,2022

Chomsky's hierarchy Explanation :