simply finding the area of a triangle this is how i want to do it and the compiler says its all good to go but it fails after i enter the three values, and says the problems in the lines shown in an error message window, any help appreciated, thanks.

Code:#include<stdio.h> #include<math.h> void my_func(float *R, float *P, float *A, float *B, float *C) { *P = ((*A+*B+*C)/2); /*PROBLEM IN THIS LINE*/ *R = sqrt((*P)*(P-A)*(P-B)*(P-C)); } main() { float R, P, A, B, C; printf("Enter 3 non integer values:"); scanf("%f, %f, %f\n", &A, &B, &C); my_func(&P, &R, &A, &B, &C); /*PROBLEM IN THIS LINE*/ printf("Area = %f\n",R); return(0); }