View Code of Problem 24

#include <stdio.h>
#include <stdio.h>
int main(){
  float a,b,c;
  float s,temp;
  while(scanf("%f%f%f",&a,&b,&c) != EOF){
  	temp = (a+b+c)/2;
    	s=sqrt(temp*(temp-a)*(temp-b)*(temp-c));
    	printf("%.2f",s);
  }
  
  
return 0;
}

Double click to view unformatted code.


Back to problem 24