English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

The function needs to accept an integer number and the addresses of the variables gallons, quarts, pints, and cups. The passed integer represents the total number of cups, and the function is to determine the number of gallons, quarts, pints, and cups passed value. Using the passed addresses, the function should directly alter the respective variables in the calling function. It shoud print the results like this: If the user enters XX cups, the output should be:
XX gallons
XX quarts
XX pint(s)
XX cup(s)

Can anyone help me out.

2006-10-08 04:14:03 · 1 answers · asked by Robert W 1 in Computers & Internet Programming & Design

1 answers

Liquid(Cups, &Gallons, &Quarts, &Pints, &Cups)

you write the function, its just simple math.

2006-10-09 02:45:11 · answer #1 · answered by justme 7 · 0 0

fedest.com, questions and answers