We can measure the weight of any body by using Weighing machine and then divide that weight with acceleration due to gravity to get mass. Now we can use measuring tape to measure the dimensions of that body and then by using formula of volume for that particular shape, we can calculate the volume. Divide mass with volume, you will get density