anonymous
2013-07-01 15:21:09 UTC
#define PI 3.14
int radius;
int middleReslut;
float result;
printf("Enter radius : \n");
scanf("%d", &radius);
blah blah blah and then
calculation( radius , middleReslut , result);
return 0;
}
float calculation(int a, int b, float c) {
b = a*a;
c = b*PI;
printf("%f", c);
return 0;
}
I have problem in putting two different variable types into one function. Can anybody help me ? Thank you.