#include "stdafx.h"
#include<iostream>
using namespace std;
void liquid(int cup, int*gallons, int*quarts,int*pint, int*cups);
int main()
{
int g, q, p, c;
int cup = 2;
liquid(cup, &g, &q, &p, &c);
cout << g << " " << q << " " << p<<" " << c;
cin >> c;
return 0;
}
void liquid(int cup, int*gallons, int*quarts,int*pint, int*cups)
{
*gallons = 16 * cup;
*quarts = 4 * cup;
*pint = 2 * cup;
*cups = cup;
}
Comments
Leave a comment