انا مااطلب حل السوال انما شرح المطلوب
وهذا السوال
Create a struct called Density that includes two data members{mass (type int) and volume (type int)}.
Your struct should have two functions:
1. void ExtractMassVolume( )
This function should initialize the two data members as input one number consisting of 4 digits by the user. The first two digits is for mass and the last for digits is for volume .
Hint: use the % operator to extract digits and use the / operator to remove the extracted digits. For example, if user input 9322, mass= 9322 / 100 = 93 and volume= 9322 % 100 = 22
2. void CalculateDensity( ) that prints the density using : Density = mass / volume
