Wipro Interview Question

How to write code for room measurement in C?