Write a declaration for a variablesalesAnnualof type Money (a structured type with two int fields, dollars and cents) and initialize it to represent $1,325,023.47.
.
.
Click on the title for the solution
.
.
.
Click on the title for the solution
.
.
This is the answer:
:
Money salesAnnual{
int dollars;
int cents;
salesAnnual.dollars=1325023;
salesAnnual.cents=47;
};
Comments
Post a Comment