Professional Documents
Culture Documents
Structure
Structure
2. Using struct, write a function that ask the user to enter data of car variables (name, colour ,
maxspeed, model), then output the data.
3. Write a struct (Distance_type) which contain two variables (int feet, float inches),
then declare a function that can sum the feet and inches of two variables . The output should
be like:
Enter feet and inches of d1 : 33 15
Enter feet and inches of d2 :14 20
The sum of feet is: 47
The sum of inches is: 35