user defined functions
When i write this function using user defined functions, i always get a syntax error by the sum.
//declare identifiers
int x,y,z,max,min;
//read three interger numbers
readData(x,y,z)
//find and display sum
int sum;
float average;
findSumAve(x,y,z, sum, average);
showSumAve(max, min);
//find and display the max and min of x,y,z
findMaxMin (max,min,x,y,z);
showMaxMin(max,min);
//terminate program
return 0;
1 2 3 4 5 6 7 8 9 10 11
|
int main()
{
int x,y,sum,min,max;
readdata(x,y);
sum = computesum (x,y)
find maxmin (x,y,max,min);
display (sum,max,min);
system("puase")
return 0;
|
Topic archived. No new replies allowed.